DORMANTno replies

[PATCH] attr: plug minor memory leak

From: René Scharfe <hidden>
Date: 2016-06-15 22:47:00
Subsystem: the rest · Maintainer: Linus Torvalds

Free the memory allocated for struct strbuf pathbuf when we're done.

Signed-off-by: Rene Scharfe <redacted>
---
 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help