commit | 4867f1184c943f7738bb7b42cab2e62cf16cdb18 | [log] [tgz] |
---|---|---|
author | Patrick Steinhardt <ps@pks.im> | Tue Feb 23 12:59:17 2016 +0100 |
committer | Junio C Hamano <gitster@pobox.com> | Tue Feb 23 12:58:26 2016 -0800 |
tree | 170a9a156b6e224cfa133f7182363e02b44f0f14 | |
parent | 833e48259e23aea76f3765d28d1b2200332301f7 [diff] |
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>