uhttpd: Fix possible memory leaks when generating directory listing
authorAndrej Krpic <ak77@tnode.com>
Mon, 22 Dec 2014 17:55:11 +0000 (18:55 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 22 Dec 2014 20:41:02 +0000 (21:41 +0100)
commitbf0948ef5ee92ace7f8f46ab7cf71ddec09a90a1
treee94a18bc2c89d1cf5ecb58e96b77c024a21fdb8f
parentfd8e5e379c23c5fbcec3e76894b839233df09067
uhttpd: Fix possible memory leaks when generating directory listing

scandir() call requires free() of each returned dirent structure
and parent list. Code constructing HTML response of directory
listing is missing a call to free in some cases.

Signed-off-by: Andrej Krpic <ak77@tnode.com>
file.c