db/upnp/Discovery: fix memory leak
This commit is contained in:
parent
c1950e40e6
commit
339d939873
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue