Skip to content

Commit

Permalink
Merge branch 'ly/mktree-using-strbuf'
Browse files Browse the repository at this point in the history
* ly/mktree-using-strbuf:
  mktree: fix a memory leak in write_tree()
  • Loading branch information
Junio C Hamano committed Nov 12, 2011
2 parents 248dbbe + c444c16 commit dc865af
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions builtin/mktree.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ static void write_tree(unsigned char *sha1)
}

write_sha1_file(buf.buf, buf.len, tree_type, sha1);
strbuf_release(&buf);
}

static const char *mktree_usage[] = {
Expand Down

0 comments on commit dc865af

Please sign in to comment.