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:
csoler 2014-09-08 19:37:01 +00:00
parent 1b28e40346
commit 86126dea25

View File

@ -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;
fclose(fd) ;
delete[] buf ;
return false ;
}
fclose(fd) ;