From: René Scharfe Date: Tue, 30 Jun 2009 22:30:00 GMT Subject: [PATCH] attr: plug minor memory leak Message-ID: <4A4A91E8.6060604@lsrfire.ath.cx> Free the memory allocated for struct strbuf pathbuf when we're done. Signed-off-by: Rene Scharfe --- attr.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/attr.c b/attr.c index f8f6faa..55bdb7c 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. */ -- 1.6.3.3