added missing fclose in error handling case (patch from Vaio)

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7509 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2014-09-09 17:09:52 +00:00
parent 62dc21d3b7
commit 7c43bd27d3

View File

@ -141,6 +141,7 @@ HashCache::HashCache(const std::string& path)
{
std::cerr << "Cannot read from file " + _path+".bin" << ": something's wrong." << std::endl;
free(buffer) ;
fclose(F) ;
return ;
}
fclose(F) ;