uci: libuci leaking memory on non-existent config file
authorKrzysztof Kuznik <k.kuznik@avsystem.com>
Wed, 22 Aug 2012 08:11:23 +0000 (10:11 +0200)
committerJo-Philipp Wich <jow@openwrt.org>
Mon, 22 Apr 2013 13:04:08 +0000 (15:04 +0200)
In file file.c function uci_file_load() allocates memory for filename.
When uci_open_stream() failed with exception this memory was never freed.
This patch makes call to uci_open_stream() wrapped in exception handling
inside uci_file_load() where filename is freed.

Signed-off-by: Krzysztof Kuznik <k.kuznik@avsystem.com>

No differences found