summaryrefslogtreecommitdiff
path: root/rerere.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2011-05-26 15:55:50 +0200
committerJunio C Hamano <gitster@pobox.com>2011-05-26 11:20:48 -0700
commita9930e359c45302f92639e8cd0a61c9c912e0b22 (patch)
treedabf033a8f2e20a4ca11d5337c6d8424aa5dc954 /rerere.c
parent665b051b904fc451088d74dd37dc314f7099faba (diff)
downloadgit-a9930e359c45302f92639e8cd0a61c9c912e0b22.tar.gz
plug a DIR buffer leak in rerere.c
Signed-off-by: Jim Meyering <jim@meyering.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'rerere.c')
-rw-r--r--rerere.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/rerere.c b/rerere.c
index dee2cb1514..e3407cf334 100644
--- a/rerere.c
+++ b/rerere.c
@@ -739,6 +739,7 @@ void rerere_gc(struct string_list *rr)
if (then < now - cutoff * 86400)
string_list_append(&to_remove, e->d_name);
}
+ closedir(dir);
for (i = 0; i < to_remove.nr; i++)
unlink_rr_item(to_remove.items[i].string);
string_list_clear(&to_remove, 0);