From 79fe711a01cb1d0ac3b5f5603d21508eb1ffbd75 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Tue, 25 Nov 2008 17:29:08 +0100 Subject: [PATCH] fix memory leak reported in https://dev.openwrt.org/ticket/4236 --- file.c | 1 + 1 file changed, 1 insertion(+) diff --git a/file.c b/file.c index 06ba34d..1abe8ff 100644 --- 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; } -- 2.41.1