uci: fix memory leak in rpc_uci_apply_timeout()
authorJo-Philipp Wich <jo@mein.io>
Thu, 19 Apr 2018 13:13:25 +0000 (15:13 +0200)
committerJo-Philipp Wich <jo@mein.io>
Fri, 20 Apr 2018 11:17:28 +0000 (13:17 +0200)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
uci.c

diff --git a/uci.c b/uci.c
index 35332d8dcffe7cf694097303daf32fd7ed00d524..49c2336e2ab8882fcd4a2add0a592c13a4bdb0d4 100644 (file)
--- a/uci.c
+++ b/uci.c
@@ -1373,6 +1373,8 @@ rpc_uci_apply_timeout(struct uloop_timeout *t)
                return;
 
        rpc_uci_do_rollback(apply_ctx, &gl);
+
+       globfree(&gl);
 }
 
 static int