From: Mark Wooding Date: Tue, 16 Jul 2024 17:34:12 +0000 (+0100) Subject: checkpath.c: Fix leak of path-element stack. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/checkpath/commitdiff_plain/6da5efa9bed47c5fe8170bf401d44801c26a51d0 checkpath.c: Fix leak of path-element stack. --- diff --git a/checkpath.c b/checkpath.c index e594201..5c047a5 100644 --- a/checkpath.c +++ b/checkpath.c @@ -139,7 +139,7 @@ static void pop(void) struct elt *e = sp->e_link; d.len = sp->e_offset; DPUTZ(&d); - sp = e; + free(sp); sp = e; } }