Re: [PATCH 2/3] read-cache: fix memory leak in do_write_index

2017-08-21 Thread Junio C Hamano
Kevin Willford writes: > 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 > --- Thanks for spotting an old error that dates back to at least 2013 this mon

[PATCH 2/3] read-cache: fix memory leak in do_write_index

2017-08-21 Thread Kevin Willford
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 --- read-cache.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/read-cache.c b/r