Merge branch 'ly/mktree-using-strbuf'
* ly/mktree-using-strbuf: mktree: fix a memory leak in write_tree()
This commit is contained in:
commit
dc865af65f
@ -60,6 +60,7 @@ static void write_tree(unsigned char *sha1)
|
|||||||
}
|
}
|
||||||
|
|
||||||
write_sha1_file(buf.buf, buf.len, tree_type, sha1);
|
write_sha1_file(buf.buf, buf.len, tree_type, sha1);
|
||||||
|
strbuf_release(&buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
static const char *mktree_usage[] = {
|
static const char *mktree_usage[] = {
|
||||||
|
Loading…
Reference in New Issue
Block a user