mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 22:25:04 -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
1 changed files with 2 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue