author | Jens Lehmann <Jens.Lehmann@web.de> | |
Sun, 31 Jan 2010 16:43:49 +0000 (17:43 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 31 Jan 2010 18:25:23 +0000 (10:25 -0800) | ||
commit | de7a79608c94f7319b55060741d6be98826deccb | |
tree | f5d733dee4ade78720a56dc912bcd53f903dd0a8 | tree | snapshot |
parent | 6a5d0b0a90789ed92cb87f1b69cfeef2a1db3566 | commit | diff |
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>
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 | diff | blob | history |