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
1 changed files with 2 additions and 1 deletions
|
@ -2705,8 +2705,9 @@ DBusMessage * wpas_dbus_handler_p2p_delete_service(
|
|||
bonjour = 1;
|
||||
else
|
||||
goto error_clear;
|
||||
wpa_dbus_dict_entry_clear(&entry);
|
||||
}
|
||||
|
||||
wpa_dbus_dict_entry_clear(&entry);
|
||||
}
|
||||
if (upnp == 1) {
|
||||
while (wpa_dbus_dict_has_dict_entry(&iter_dict)) {
|
||||
|
|
Loading…
Reference in a new issue