summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRené Scharfe <rene.scharfe@lsrfire.ath.cx>2009-06-30 22:30:00 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-06-30 23:12:24 (GMT)
commitd4c985653a580e78db94c549bdcd71669067b8a9 (patch)
tree505b237619c11bf90da6320eed1f5b6b17ad48d1
parent476cc724242e715c150dce0d26d2feabe2dbe5e1 (diff)
downloadgit-d4c985653a580e78db94c549bdcd71669067b8a9.zip
git-d4c985653a580e78db94c549bdcd71669067b8a9.tar.gz
git-d4c985653a580e78db94c549bdcd71669067b8a9.tar.bz2
attr: plug minor memory leak
Free the memory allocated for struct strbuf pathbuf when we're done. Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--attr.c2
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.
*/