db/upnp/Discovery: fix memory leak
This commit is contained in:
@@ -77,6 +77,7 @@ UPnPDeviceDirectory::discoExplorer()
|
|||||||
time(0), tsk->expires);
|
time(0), tsk->expires);
|
||||||
free(buf);
|
free(buf);
|
||||||
if (!d.device.ok) {
|
if (!d.device.ok) {
|
||||||
|
delete tsk;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user