From a9930e359c45302f92639e8cd0a61c9c912e0b22 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Thu, 26 May 2011 15:55:50 +0200 Subject: [PATCH] plug a DIR buffer leak in rerere.c Signed-off-by: Jim Meyering Signed-off-by: Junio C Hamano --- rerere.c | 1 + 1 file changed, 1 insertion(+) diff --git a/rerere.c b/rerere.c index dee2cb151..e3407cf33 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); -- 2.26.2