summaryrefslogtreecommitdiffstats
path: root/csum-file.c
diff options
context:
space:
mode:
authorMichael Haggerty <mhagger@alum.mit.edu>2013-10-30 06:32:57 +0100
committerJunio C Hamano <gitster@pobox.com>2013-10-30 22:16:34 +0100
commite31a17f7416a85ee8c3260f8c8b7519ff7ea82b6 (patch)
treea0a9488c91f0d4c1c691cbefa920d9b323650d7d /csum-file.c
parentget_expanded_map(): add docstring (diff)
downloadgit-e31a17f7416a85ee8c3260f8c8b7519ff7ea82b6.tar.xz
git-e31a17f7416a85ee8c3260f8c8b7519ff7ea82b6.zip
get_expanded_map(): avoid memory leak
The old code could leak *expn_name if match_name_with_pattern() succeeded but ignore_symref_update() returned true. So make sure that *expn_name is freed in any case. Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'csum-file.c')
0 files changed, 0 insertions, 0 deletions