[PATCH v2 0/1] maintenance: fix two memory leaks
- From
Lénaïc Huard <lenaic@lhuard.fr>
- Date
- May 10, 2021, 19:59 UTC
- Message-ID
- <20210510195909.621534-1-lenaic@lhuard.fr>
- In-Reply-To
- <20210509221613.474887-1-lenaic@lhuard.fr>
Hi!
Thank you for the code review.
I’ve moved the `strbuf_release(&line);` closer to the last point where `line` is used.
And I’ve included Junio’s patch to address the missing `free(local_path)` when `hold_lock_file_for_update()<0`.
Lénaïc Huard (1): maintenance: fix two memory leaks
builtin/gc.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-)
-- 2.31.1