mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-25 01:01:40 -04:00
fixed missign delete in hash computation code
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5038 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
e090d0a443
commit
633b66b1dd
1 changed files with 2 additions and 1 deletions
|
@ -920,7 +920,7 @@ bool ftDataMultiplex::handleRecvChunkCrcRequest(const std::string& peerId, const
|
|||
if(fd == NULL)
|
||||
{
|
||||
std::cerr << "Cannot read file " << filename << ". Something's wrong!" << std::endl;
|
||||
delete buf ;
|
||||
delete[] buf ;
|
||||
return false ;
|
||||
}
|
||||
uint32_t len ;
|
||||
|
@ -932,6 +932,7 @@ bool ftDataMultiplex::handleRecvChunkCrcRequest(const std::string& peerId, const
|
|||
fclose(fd) ;
|
||||
|
||||
crc = RsDirUtil::sha1sum(buf,len) ;
|
||||
delete[] buf ;
|
||||
|
||||
// update cache
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue