From: Krzysztof Kuznik Date: Wed, 22 Aug 2012 08:11:23 +0000 (+0200) Subject: uci: libuci leaking memory on non-existent config file X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fuci.git;a=commitdiff_plain;h=6c71e7ee00c98eec9bd1cc92b903738863aebd57;hp=6c71e7ee00c98eec9bd1cc92b903738863aebd57 uci: libuci leaking memory on non-existent config file 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 ---