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);
|
||||
free(buf);
|
||||
if (!d.device.ok) {
|
||||
delete tsk;
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue