]> pilppa.com Git - uci.git/commitdiff
fix memory leak reported in https://dev.openwrt.org/ticket/4236
authorFelix Fietkau <nbd@openwrt.org>
Tue, 25 Nov 2008 16:29:08 +0000 (17:29 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 25 Nov 2008 16:29:08 +0000 (17:29 +0100)
file.c

diff --git a/file.c b/file.c
index 06ba34df95dc4379e0d23974cc5f6222fd6c5701..1abe8ff4987d6159affc60c7f847ccb7f84d365c 100644 (file)
--- a/file.c
+++ b/file.c
@@ -528,6 +528,7 @@ static char **uci_list_config_files(struct uci_context *ctx)
                buf += strlen(buf) + 1;
        }
        free(dir);
+       globfree(&globbuf);
        return configs;
 }