* [PATCH] attr: plug minor memory leak
@ 2009-06-30 22:30 René Scharfe
0 siblings, 0 replies; only message in thread
From: René Scharfe @ 2009-06-30 22:30 UTC (permalink / raw)
To: Git Mailing List; +Cc: Dmitry Potapov, Junio C Hamano
Free the memory allocated for struct strbuf pathbuf when we're done.
Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
---
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2009-06-30 22:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-30 22:30 [PATCH] attr: plug minor memory leak René Scharfe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).