P2P: Fix memory leak in UPnP service discovery request processing
This commit is contained in:
parent
74727a7b32
commit
714b8b5378
1 changed files with 1 additions and 0 deletions
|
@ -1477,6 +1477,7 @@ static void wpas_sd_req_upnp(struct wpa_supplicant *wpa_s,
|
||||||
break;
|
break;
|
||||||
wpabuf_put_str(resp, usrv->service);
|
wpabuf_put_str(resp, usrv->service);
|
||||||
}
|
}
|
||||||
|
os_free(str);
|
||||||
|
|
||||||
if (count == 0) {
|
if (count == 0) {
|
||||||
wpa_printf(MSG_DEBUG, "P2P: Requested UPnP service not "
|
wpa_printf(MSG_DEBUG, "P2P: Requested UPnP service not "
|
||||||
|
|
Loading…
Reference in a new issue