From 418588e14ade974d4380ea14a57ad4eda5e853c3 Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Tue, 3 Sep 2013 11:41:34 +0400 Subject: [PATCH] lib/libupnpclient/UPNPDevice.cpp: fix fd leak --- lib/libupnpclient/UPNPDevice.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/libupnpclient/UPNPDevice.cpp b/lib/libupnpclient/UPNPDevice.cpp index 98660c2b9..bc8aa49bb 100644 --- a/lib/libupnpclient/UPNPDevice.cpp +++ b/lib/libupnpclient/UPNPDevice.cpp @@ -438,6 +438,7 @@ std::string CUPnPDevice::HTTP(std::string url, std::string post, std::string act buf[received] = 0; reply << buf; } + close(t_socket); return reply.str(); }