From 339d939873f4dfcb11c9ab7737118f50218dfc96 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 18 Jan 2014 14:03:18 +0100 Subject: [PATCH] db/upnp/Discovery: fix memory leak --- src/db/upnp/Discovery.cxx | 1 + 1 file changed, 1 insertion(+) 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; }