diff options
author | Jim Meyering <jim@meyering.net> | 2011-05-26 15:55:50 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-05-26 11:20:48 -0700 |
commit | a9930e359c45302f92639e8cd0a61c9c912e0b22 (patch) | |
tree | dabf033a8f2e20a4ca11d5337c6d8424aa5dc954 | |
parent | 665b051b904fc451088d74dd37dc314f7099faba (diff) | |
download | git-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>
-rw-r--r-- | rerere.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |