P2P: Fix memory leak in UPnP service discovery request processing
authorJouni Malinen <jouni.malinen@atheros.com>
Wed, 13 Apr 2011 22:33:26 +0000 (01:33 +0300)
committerJouni Malinen <j@w1.fi>
Wed, 13 Apr 2011 22:33:26 +0000 (01:33 +0300)
wpa_supplicant/p2p_supplicant.c

index 3970dc4..d7f7473 100644 (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 "