From efd15d5f83f0a4987fd08ff34207206c94e00a7b Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Sat, 1 Oct 2011 17:44:24 +0000 Subject: [PATCH] fix getservices:Resource leak: fd git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@1718 e54a6e83-5905-42d5-8d5c-058d10e6a962 Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/59abea188a622ffbca2ccda6d7a6f8bb849661ee Author: Jacek Jendrzej Date: 2011-10-01 (Sat, 01 Oct 2011) Origin message was: ------------------ -fix getservices:Resource leak: fd git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@1718 e54a6e83-5905-42d5-8d5c-058d10e6a962 --- src/zapit/src/getservices.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/zapit/src/getservices.cpp b/src/zapit/src/getservices.cpp index 766f29788..ca23ed59a 100644 --- a/src/zapit/src/getservices.cpp +++ b/src/zapit/src/getservices.cpp @@ -847,8 +847,10 @@ bool CServiceManager::SaveCurrentServices(transponder_id_t tpid) } sat_iterator_t spos_it = satellitePositions.find(satellitePosition); - if(spos_it == satellitePositions.end()) + if(spos_it == satellitePositions.end()){ + fclose(fd); return false; + } switch (CFrontend::getInstance()->getInfo()->type) { case FE_QPSK: /* satellite */