summaryrefslogtreecommitdiff
path: root/t/t0002-gitfile.sh
diff options
context:
space:
mode:
authorLibravatar Patrick Steinhardt <ps@pks.im>2016-02-23 12:59:17 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2016-02-23 12:58:26 -0800
commit4867f1184c943f7738bb7b42cab2e62cf16cdb18 (patch)
tree170a9a156b6e224cfa133f7182363e02b44f0f14 /t/t0002-gitfile.sh
parentGit 2.6.5 (diff)
downloadtgif-4867f1184c943f7738bb7b42cab2e62cf16cdb18.tar.xz
xdiff/xmerge: fix memory leak in xdl_merge
When building the script for the second file that is to be merged we have already allocated memory for data structures related to the first file. When we encounter an error in building the second script we only free allocated memory related to the second file before erroring out. Fix this memory leak by also releasing allocated memory related to the first file. Helped-by: Johannes Schindelin <Johannes.Schindelin@gmx.de> Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t0002-gitfile.sh')
0 files changed, 0 insertions, 0 deletions