]> git.ipfire.org Git - thirdparty/git.git/commit
mktree: fix a memory leak in write_tree()
authorLiu Yuan <tailai.ly@taobao.com>
Thu, 10 Nov 2011 08:39:22 +0000 (16:39 +0800)
committerJunio C Hamano <gitster@pobox.com>
Thu, 10 Nov 2011 17:04:08 +0000 (09:04 -0800)
commitcd9519bd2c5c666cfb3ec219ee0b47c83f26f3fe
tree2d16084aae0f522a201cb9842aced987e1560c79
parentd52bc66152834dff3fb5f32a54f6ed57730f58c6
mktree: fix a memory leak in write_tree()

We forget to call strbuf_release to release the buf memory.

Signed-off-by: Liu Yuan <tailai.ly@taobao.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
mktree.c