read-cache: fix memory leak in do_write_index
authorKevin Willford <kewillf@microsoft.com>
Mon, 21 Aug 2017 21:24:31 +0000 (15:24 -0600)
committerJunio C Hamano <gitster@pobox.com>
Mon, 21 Aug 2017 22:57:02 +0000 (15:57 -0700)
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 <kewillf@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
No differences found