]> git.ipfire.org Git - thirdparty/git.git/commit - submodule.c
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)
commitde7a79608c94f7319b55060741d6be98826deccb
treef5d733dee4ade78720a56dc912bcd53f903dd0a8
parent6a5d0b0a90789ed92cb87f1b69cfeef2a1db3566
Fix memory leak in submodule.c

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>
submodule.c