mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-01-03 10:32:33 +01:00
client: Fix property completion mem leak
This commit is contained in:
parent
bb4f4c8159
commit
b30b84373d
@ -175,11 +175,11 @@ char *proxy_property_str_completion(const struct proxy_interface_type *type,
|
|||||||
|
|
||||||
str = proxy_interface_property_tostr(proxy, property_name);
|
str = proxy_interface_property_tostr(proxy, property_name);
|
||||||
if (!str)
|
if (!str)
|
||||||
return NULL;
|
goto done;
|
||||||
|
|
||||||
return l_strdup(str);
|
return l_strdup(str);
|
||||||
}
|
}
|
||||||
|
done:
|
||||||
l_queue_destroy(match, NULL);
|
l_queue_destroy(match, NULL);
|
||||||
match = NULL;
|
match = NULL;
|
||||||
entry = NULL;
|
entry = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user