From f3b4ddee6c9ede15ed0009651d47d260fcd12fd3 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 18 Jan 2014 13:08:48 +0100 Subject: [PATCH] db/upnp/Discovery: free the response body 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 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; }