uci: fix memory leak in rpc_uci_apply_timeout()
[project/rpcd.git] / uci.c
diff --git a/uci.c b/uci.c
index 35332d8..49c2336 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