summaryrefslogtreecommitdiff
path: root/attr.c
diff options
context:
space:
mode:
authorRené Scharfe <rene.scharfe@lsrfire.ath.cx>2009-07-01 00:30:00 +0200
committerJunio C Hamano <gitster@pobox.com>2009-06-30 16:12:24 -0700
commitd4c985653a580e78db94c549bdcd71669067b8a9 (patch)
tree505b237619c11bf90da6320eed1f5b6b17ad48d1 /attr.c
parent476cc724242e715c150dce0d26d2feabe2dbe5e1 (diff)
downloadgit-d4c985653a580e78db94c549bdcd71669067b8a9.tar.gz
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>
Diffstat (limited to 'attr.c')
-rw-r--r--attr.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/attr.c b/attr.c
index f8f6faa94f..55bdb7cdeb 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.
*/