diff options
author | René Scharfe <rene.scharfe@lsrfire.ath.cx> | 2009-07-01 00:30:00 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-06-30 16:12:24 -0700 |
commit | d4c985653a580e78db94c549bdcd71669067b8a9 (patch) | |
tree | 505b237619c11bf90da6320eed1f5b6b17ad48d1 /attr.c | |
parent | 476cc724242e715c150dce0d26d2feabe2dbe5e1 (diff) | |
download | git-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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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. */ |