fixed fclose before rename (previous commit was wrong)

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7834 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2015-01-10 19:25:05 +00:00
parent eacdbe6ddd
commit bec858b9d5

View File

@ -266,7 +266,8 @@ void HashCache::save()
if(fwrite(encryptedData,1,encDataLen,F) != encDataLen)
{
std::cerr << "Could not write entire encrypted hash cache file. Out of disc space??" << std::endl;
goto save_close;
fclose(F) ;
goto save_free;
}
fclose(F) ;
@ -278,8 +279,6 @@ void HashCache::save()
_changed = false;
save_close:
fclose(F);
save_free:
free(encryptedData);
}