OSDN Git Service
(root)
/
git-core
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
476cc72
)
attr: plug minor memory leak
author
René Scharfe
<rene.scharfe@lsrfire.ath.cx>
Tue, 30 Jun 2009 22:30:00 +0000
(
00:30
+0200)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 30 Jun 2009 23:12:24 +0000
(16:12 -0700)
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>
attr.c
patch
|
blob
|
history
diff --git
a/attr.c
b/attr.c
index
f8f6faa
..
55bdb7c
100644
(file)
--- 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.
*/