Skip to contentSkip to conversation

attr: plug minor memory leak

PATCH New René Scharfe 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 attr: plug minor memory leak

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

---
 attr.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
attr.c +2 -0
index f8f6faa..55bdb7c 100644
@@ -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.
 	 */
Signature · 1 line
1.6.3.3