P2P: Fix memory leak in UPnP service discovery request processing

This commit is contained in:
Jouni Malinen 2011-04-14 01:33:26 +03:00 committed by Jouni Malinen
parent 74727a7b32
commit 714b8b5378

View file

@ -1477,6 +1477,7 @@ static void wpas_sd_req_upnp(struct wpa_supplicant *wpa_s,
break;
wpabuf_put_str(resp, usrv->service);
}
os_free(str);
if (count == 0) {
wpa_printf(MSG_DEBUG, "P2P: Requested UPnP service not "