From b30b84373df51d57b8aa3892b253d72830eeb4c1 Mon Sep 17 00:00:00 2001 From: Tim Kourt Date: Fri, 5 Apr 2019 10:47:00 -0700 Subject: [PATCH] client: Fix property completion mem leak --- client/dbus-proxy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/dbus-proxy.c b/client/dbus-proxy.c index e7be623f..607632e4 100644 --- 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;