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; }