From d4c985653a580e78db94c549bdcd71669067b8a9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ren=C3=A9=20Scharfe?= Date: Wed, 1 Jul 2009 00:30:00 +0200 Subject: [PATCH] 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 --- attr.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/attr.c b/attr.c index f8f6faa94f..55bdb7cdeb 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. */ -- 2.11.4.GIT