Skip to content

Commit

Permalink
prune-packed: fix minor memory leak
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jeff King authored and Junio C Hamano committed Sep 15, 2014
1 parent 96db324 commit 1cc2c77
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions builtin/prune-packed.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1cc2c77

Please sign in to comment.