From 1acbe1d66fc4be5a648abe3a9725c2be9f95794f Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Fri, 12 Aug 2016 14:01:38 +0200 Subject: [PATCH] dispatcher/tests: fix memleak in test Causes valgrind failure. Fixes: 570e8ee29684f16b4306f1eb94a1b756608ddd3b --- callouts/tests/test-dispatcher-envp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/callouts/tests/test-dispatcher-envp.c b/callouts/tests/test-dispatcher-envp.c index 55ccbd605..a6ced8d4b 100644 --- a/callouts/tests/test-dispatcher-envp.c +++ b/callouts/tests/test-dispatcher-envp.c @@ -456,7 +456,7 @@ test_generic (const char *file, const char *override_vpn_ip_iface) GVariant *device_ip6_props = NULL; GVariant *device_dhcp4_props = NULL; GVariant *device_dhcp6_props = NULL; - char *connectivity_change = NULL; + gs_free char *connectivity_change = NULL; char *vpn_ip_iface = NULL; GVariant *vpn_ip4_props = NULL; GVariant *vpn_ip6_props = NULL;