mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -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
@ -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…
Reference in New Issue
Block a user