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
------------------
Branch: ni/coolstream
Commit: 59abea188a
Author: Jacek Jendrzej <overx300@gmail.com>
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


------------------
This commit was generated by Migit
This commit is contained in:
Jacek Jendrzej
2011-10-01 17:44:24 +00:00
parent c574e3a977
commit b678b6764c

View File

@@ -847,8 +847,10 @@ bool CServiceManager::SaveCurrentServices(transponder_id_t tpid)
} }
sat_iterator_t spos_it = satellitePositions.find(satellitePosition); sat_iterator_t spos_it = satellitePositions.find(satellitePosition);
if(spos_it == satellitePositions.end()) if(spos_it == satellitePositions.end()){
fclose(fd);
return false; return false;
}
switch (CFrontend::getInstance()->getInfo()->type) { switch (CFrontend::getInstance()->getInfo()->type) {
case FE_QPSK: /* satellite */ case FE_QPSK: /* satellite */