Fix memory leak in submodule.c
authorJens Lehmann <Jens.Lehmann@web.de>
Sun, 31 Jan 2010 16:43:49 +0000 (17:43 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sun, 31 Jan 2010 18:25:23 +0000 (10:25 -0800)
The strbuf used in add_submodule_odb() was never released. So for every
submodule - populated or not - we leaked its object directory name when
using "git diff*" with the --submodule option.

Signed-off-by: Jens Lehmann <Jens.Lehmann@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
No differences found