Merge branch 'ly/mktree-using-strbuf'

* ly/mktree-using-strbuf:
  mktree: fix a memory leak in write_tree()
This commit is contained in:
Junio C Hamano 2011-11-11 21:34:06 -08:00
commit dc865af65f

View File

@ -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[] = {