From: Kevin Willford Date: Mon, 21 Aug 2017 21:24:31 +0000 (-0600) Subject: read-cache: fix memory leak in do_write_index X-Git-Tag: v2.15.0-rc0~119^2~1 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/b50386c7c038ccea8f70d2a66ac78f189240ef05?hp=b50386c7c038ccea8f70d2a66ac78f189240ef05 read-cache: fix memory leak in do_write_index The previous_name_buf was never getting released when there was an error in ce_write_entry or allow was false and execution was returned to the caller. Signed-off-by: Kevin Willford Signed-off-by: Junio C Hamano ---