range-diff: avoid leaking memory in two error code paths
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Thu, 4 Feb 2021 20:07:49 +0000 (20:07 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 5 Feb 2021 01:16:42 +0000 (17:16 -0800)
commit8c29b497946fde2a6ef597d960a05d3dd36dcbf0
tree56ced0369516976cf63d165e1f3fd2a790a15bcd
parent66e871b6647ffea61a77a0f82c7ef3415f1ee79c
range-diff: avoid leaking memory in two error code paths

In the code paths in question, we already release a lot of memory, but
the `current_filename` variable was missed. Fix that.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
range-diff.c