Browse Source

P2P: Fix memory leak in UPnP service discovery request processing

Jouni Malinen 14 years ago
parent
commit
714b8b5378
1 changed files with 1 additions and 0 deletions
  1. 1 0
      wpa_supplicant/p2p_supplicant.c

+ 1 - 0
wpa_supplicant/p2p_supplicant.c

@@ -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 "