commit b30b84373df51d57b8aa3892b253d72830eeb4c1
parent bb4f4c8159fab5a3e51b85b5dd86ec10def1ef71
Author: Tim Kourt <tim.a.kourt@linux.intel.com>
Date: Fri, 5 Apr 2019 10:47:00 -0700
client: Fix property completion mem leak
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/client/dbus-proxy.c b/client/dbus-proxy.c
@@ -175,11 +175,11 @@ char *proxy_property_str_completion(const struct proxy_interface_type *type,
str = proxy_interface_property_tostr(proxy, property_name);
if (!str)
- return NULL;
+ goto done;
return l_strdup(str);
}
-
+done:
l_queue_destroy(match, NULL);
match = NULL;
entry = NULL;