Commit 339d9398 authored by Max Kellermann's avatar Max Kellermann

db/upnp/Discovery: fix memory leak

parent c1950e40
...@@ -77,6 +77,7 @@ UPnPDeviceDirectory::discoExplorer() ...@@ -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;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment