mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-07 00:25:16 -04:00
fixed small memory leak when chunk data is not found (thx to electron)
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7507 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
1b28e40346
commit
86126dea25
1 changed files with 3 additions and 0 deletions
|
@ -680,6 +680,9 @@ bool ftDataMultiplex::handleRecvChunkCrcRequest(const RsPeerId& peerId, const Rs
|
||||||
{
|
{
|
||||||
std::cerr << "Cannot fseek/read from file " << filename << " at position " << (uint64_t)chunk_number * (uint64_t)ChunkMap::CHUNKMAP_FIXED_CHUNK_SIZE << std::endl;
|
std::cerr << "Cannot fseek/read from file " << filename << " at position " << (uint64_t)chunk_number * (uint64_t)ChunkMap::CHUNKMAP_FIXED_CHUNK_SIZE << std::endl;
|
||||||
fclose(fd) ;
|
fclose(fd) ;
|
||||||
|
|
||||||
|
delete[] buf ;
|
||||||
|
return false ;
|
||||||
}
|
}
|
||||||
fclose(fd) ;
|
fclose(fd) ;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue