aboutsummaryrefslogtreecommitdiffstats
path: root/src/db/upnp
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-01-18 14:03:18 +0100
committerMax Kellermann <max@duempel.org>2014-01-18 14:03:18 +0100
commit339d939873f4dfcb11c9ab7737118f50218dfc96 (patch)
tree748ce97db7526076eb497812ad8e88a05ad18701 /src/db/upnp
parentc1950e40e6c4cd61a2874629dc34c10b81c4b516 (diff)
downloadmpd-339d939873f4dfcb11c9ab7737118f50218dfc96.tar.gz
mpd-339d939873f4dfcb11c9ab7737118f50218dfc96.tar.xz
mpd-339d939873f4dfcb11c9ab7737118f50218dfc96.zip
db/upnp/Discovery: fix memory leak
Diffstat (limited to 'src/db/upnp')
-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;
}