aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/db/upnp/Discovery.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/db/upnp/Discovery.cxx b/src/db/upnp/Discovery.cxx
index af52758db..98bc8ddb2 100644
--- a/src/db/upnp/Discovery.cxx
+++ b/src/db/upnp/Discovery.cxx
@@ -77,6 +77,7 @@ UPnPDeviceDirectory::discoExplorer()
time(0), tsk->expires);
free(buf);
if (!d.device.ok) {
+ delete tsk;
continue;
}