client: Fix property completion mem leak

This commit is contained in:
Tim Kourt 2019-04-05 10:47:00 -07:00 committed by Denis Kenzior
parent bb4f4c8159
commit b30b84373d
1 changed files with 2 additions and 2 deletions

View File

@ -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;