# [PATCH] attr: plug minor memory leak

1 messages from 2009-06-30 to 2009-06-30. Participants: René Scharfe.
Thread: https://gitlist.dev/t/19987

## René Scharfe, 2009-06-30 22:30

Subject: [PATCH] attr: plug minor memory leak
Message-ID: <4A4A91E8.6060604@lsrfire.ath.cx>
URL: https://gitlist.dev/e/4A4A91E8.6060604%40lsrfire.ath.cx

```
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

```
