mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
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:
parent
eacdbe6ddd
commit
bec858b9d5
@ -266,7 +266,8 @@ void HashCache::save()
|
|||||||
if(fwrite(encryptedData,1,encDataLen,F) != encDataLen)
|
if(fwrite(encryptedData,1,encDataLen,F) != encDataLen)
|
||||||
{
|
{
|
||||||
std::cerr << "Could not write entire encrypted hash cache file. Out of disc space??" << std::endl;
|
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) ;
|
fclose(F) ;
|
||||||
@ -278,8 +279,6 @@ void HashCache::save()
|
|||||||
|
|
||||||
_changed = false;
|
_changed = false;
|
||||||
|
|
||||||
save_close:
|
|
||||||
fclose(F);
|
|
||||||
save_free:
|
save_free:
|
||||||
free(encryptedData);
|
free(encryptedData);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user