mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-02-26 13:49:35 -05:00
D-Bus: Fix a memory leak in DeleteService handler
If the service_type string entry is not included, the dict entry was not cleared. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
b723b25926
commit
0607346f12
@ -2705,8 +2705,9 @@ DBusMessage * wpas_dbus_handler_p2p_delete_service(
|
|||||||
bonjour = 1;
|
bonjour = 1;
|
||||||
else
|
else
|
||||||
goto error_clear;
|
goto error_clear;
|
||||||
wpa_dbus_dict_entry_clear(&entry);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
wpa_dbus_dict_entry_clear(&entry);
|
||||||
}
|
}
|
||||||
if (upnp == 1) {
|
if (upnp == 1) {
|
||||||
while (wpa_dbus_dict_has_dict_entry(&iter_dict)) {
|
while (wpa_dbus_dict_has_dict_entry(&iter_dict)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user