diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-01-04 01:20:54 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-01-04 01:20:54 +0100 |
commit | 27e60fb7bbea043a4d5972a05bda1146fac84da0 (patch) | |
tree | ea1e032cedf026b7d3b83b751c5e3765f3d50aa0 /proc.c | |
parent | 6384dde85bb0729137c4de3c1c994edc5d7c8091 (diff) | |
download | uhttpd2-27e60fb7bbea043a4d5972a05bda1146fac84da0.tar.gz |
plug a memory leak in cgi processing
Diffstat (limited to 'proc.c')
-rw-r--r-- | proc.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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) |