Skip to content

Commit 1cc2c77

Browse files
peffgitster
authored andcommitted
prune-packed: fix minor memory leak
We form all of our directories in a strbuf, but never release it. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 96db324 commit 1cc2c77

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

builtin/prune-packed.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ void prune_packed_objects(int opts)
6868
rmdir(pathname.buf);
6969
}
7070
stop_progress(&progress);
71+
strbuf_release(&pathname);
7172
}
7273

7374
int cmd_prune_packed(int argc, const char **argv, const char *prefix)

0 commit comments

Comments
 (0)