Code

Fix a small memory leak in builtin-add
authorBenoit Sigoure <tsuna@lrde.epita.fr>
Mon, 29 Oct 2007 07:00:33 +0000 (08:00 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 29 Oct 2007 18:39:07 +0000 (11:39 -0700)
commit399f0a8eedeec209c2eb97be6285331087234644
tree2d9e5d8cbf5a682cee7d8b5d2293fb4143490682
parent1c1f79a1e44547d039e7bf94d9aaadd3fae007d1
Fix a small memory leak in builtin-add

prune_directory and fill_directory allocated one byte per pathspec and never
freed it.

Signed-off-by: Benoit Sigoure <tsuna@lrde.epita.fr>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-add.c