summaryrefslogtreecommitdiff
path: root/proc.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-01-04 01:20:54 +0100
committerFelix Fietkau <nbd@openwrt.org>2013-01-04 01:20:54 +0100
commit27e60fb7bbea043a4d5972a05bda1146fac84da0 (patch)
treeea1e032cedf026b7d3b83b751c5e3765f3d50aa0 /proc.c
parent6384dde85bb0729137c4de3c1c994edc5d7c8091 (diff)
downloaduhttpd2-27e60fb7bbea043a4d5972a05bda1146fac84da0.tar.gz
plug a memory leak in cgi processing
Diffstat (limited to 'proc.c')
-rw-r--r--proc.c5
1 files 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)