From: Felix Fietkau Date: Fri, 4 Jan 2013 00:20:54 +0000 (+0100) Subject: plug a memory leak in cgi processing X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=27e60fb7bbea043a4d5972a05bda1146fac84da0;p=oweals%2Fuhttpd.git plug a memory leak in cgi processing --- 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)