db/upnp/Discovery: fix memory leak

This commit is contained in:
Max Kellermann 2014-01-18 14:03:18 +01:00
parent c1950e40e6
commit 339d939873
1 changed files with 1 additions and 0 deletions

View File

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