From 27e60fb7bbea043a4d5972a05bda1146fac84da0 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Fri, 4 Jan 2013 01:20:54 +0100 Subject: [PATCH] plug a memory leak in cgi processing --- proc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/proc.c b/proc.c index 4c40022..e37176d 100644 --- a/proc.c +++ b/proc.c @@ -232,9 +232,10 @@ static void proc_write_close(struct client *cl) static void proc_free(struct client *cl) { - blob_buf_free(&cl->hdr); + struct dispatch_proc *p = &cl->dispatch.proc; + blob_buf_free(&p->hdr); proc_write_close(cl); - uh_relay_free(&cl->dispatch.proc.r); + uh_relay_free(&p->r); } static void proc_write_cb(struct uloop_fd *fd, unsigned int events) -- 2.25.1