db/upnp/Discovery: free the response body

Memory leak.
This commit is contained in:
Max Kellermann 2014-01-18 13:08:48 +01:00
parent 758b504cf3
commit f3b4ddee6c
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}