mirror of
https://github.com/git/git.git
synced 2024-10-30 05:47:53 +01:00
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>
This commit is contained in:
parent
96db324a73
commit
1cc2c772dd
1 changed files with 1 additions and 0 deletions
|
@ -68,6 +68,7 @@ void prune_packed_objects(int opts)
|
|||
rmdir(pathname.buf);
|
||||
}
|
||||
stop_progress(&progress);
|
||||
strbuf_release(&pathname);
|
||||
}
|
||||
|
||||
int cmd_prune_packed(int argc, const char **argv, const char *prefix)
|
||||
|
|
Loading…
Reference in a new issue