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: 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 is contained in:
Jacek Jendrzej
2011-10-01 17:44:24 +00:00
parent f7d2a7cb9f
commit efd15d5f83

View File

@@ -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 */