diff options
author | Max Kellermann <max@duempel.org> | 2014-01-18 14:03:18 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-01-18 14:03:18 +0100 |
commit | 339d939873f4dfcb11c9ab7737118f50218dfc96 (patch) | |
tree | 748ce97db7526076eb497812ad8e88a05ad18701 | |
parent | c1950e40e6c4cd61a2874629dc34c10b81c4b516 (diff) | |
download | mpd-339d939873f4dfcb11c9ab7737118f50218dfc96.tar.gz mpd-339d939873f4dfcb11c9ab7737118f50218dfc96.tar.xz mpd-339d939873f4dfcb11c9ab7737118f50218dfc96.zip |
db/upnp/Discovery: fix memory leak
-rw-r--r-- | src/db/upnp/Discovery.cxx | 1 |
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; } |