aboutsummaryrefslogtreecommitdiffstats
path: root/src/db/upnp
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-01-18 13:08:48 +0100
committerMax Kellermann <max@duempel.org>2014-01-18 13:08:48 +0100
commitf3b4ddee6c9ede15ed0009651d47d260fcd12fd3 (patch)
treec7f6d618d9a017a071925f0c7fcaa624cc4c75b7 /src/db/upnp
parent758b504cf3b954036ccbc21959b47999f7dabf27 (diff)
downloadmpd-f3b4ddee6c9ede15ed0009651d47d260fcd12fd3.tar.gz
mpd-f3b4ddee6c9ede15ed0009651d47d260fcd12fd3.tar.xz
mpd-f3b4ddee6c9ede15ed0009651d47d260fcd12fd3.zip
db/upnp/Discovery: free the response body
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 b33dbd395..af52758db 100644
--- a/src/db/upnp/Discovery.cxx
+++ b/src/db/upnp/Discovery.cxx
@@ -75,6 +75,7 @@ UPnPDeviceDirectory::discoExplorer()
// Update or insert the device
ContentDirectoryDescriptor d(tsk->url, buf,
time(0), tsk->expires);
+ free(buf);
if (!d.device.ok) {
continue;
}