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
|
||||
ContentDirectoryDescriptor d(tsk->url, buf,
|
||||
time(0), tsk->expires);
|
||||
free(buf);
|
||||
if (!d.device.ok) {
|
||||
continue;
|
||||
}
|
||||
|
Reference in New Issue
Block a user