daemon: plug memory leak on overlong path
commit999bba3e0bbb2e81a3e1b2bdb5846479d1e663ad
authorRené Scharfe <l.s.r@web.de>
Sat, 18 Dec 2021 09:47:03 +0000 (18 10:47 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 20 Dec 2021 20:43:18 +0000 (20 12:43 -0800)
treef360d95ec3c0fae8e109cf892a228938989f4e7c
parente9d7761bb94f20acc98824275e317fa82436c25d
daemon: plug memory leak on overlong path

Release the strbuf containing the interpolated path after copying it to
a stack buffer and before erroring out if it's too long.

Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
daemon.c