From: René Scharfe Date: Tue, 30 Jun 2009 22:30:00 +0000 (+0200) Subject: attr: plug minor memory leak X-Git-Tag: v1.6.4-rc0~10^2~4 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d4c985653a580e78db94c549bdcd71669067b8a9;p=git.git attr: plug minor memory leak Free the memory allocated for struct strbuf pathbuf when we're done. Signed-off-by: Rene Scharfe Signed-off-by: Junio C Hamano --- diff --git a/attr.c b/attr.c index f8f6faa94..55bdb7cde 100644 --- a/attr.c +++ b/attr.c @@ -555,6 +555,8 @@ static void prepare_attr_stack(const char *path, int dirlen) } } + strbuf_release(&pathbuf); + /* * Finally push the "info" one at the top of the stack. */