db/upnp/Discovery: free the response body
Memory leak.
This commit is contained in:
@@ -75,6 +75,7 @@ UPnPDeviceDirectory::discoExplorer()
|
|||||||
// Update or insert the device
|
// Update or insert the device
|
||||||
ContentDirectoryDescriptor d(tsk->url, buf,
|
ContentDirectoryDescriptor d(tsk->url, buf,
|
||||||
time(0), tsk->expires);
|
time(0), tsk->expires);
|
||||||
|
free(buf);
|
||||||
if (!d.device.ok) {
|
if (!d.device.ok) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user