Skip to content

Commit 12f1ae5

Browse files
Yuuoniygitster
authored andcommittedSep 19, 2022
commit-graph: Fix missing closedir in expire_commit_graphs
The function calls opendir() but missing the corresponding closedir() before exit the function. Add missing closedir() to fix it. Signed-off-by: Miaoqian Lin <[email protected]> Reviewed-by: Derrick Stolee <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent fd59c5b commit 12f1ae5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎commit-graph.c

+2
Original file line numberDiff line numberDiff line change
@@ -2269,6 +2269,8 @@ static void expire_commit_graphs(struct write_commit_graph_context *ctx)
22692269
}
22702270

22712271
out:
2272+
if(dir)
2273+
closedir(dir);
22722274
strbuf_release(&path);
22732275
}
22742276

0 commit comments

Comments
 (0)
Please sign in to comment.