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:
csoler 2012-03-19 13:50:33 +00:00
parent e090d0a443
commit 633b66b1dd

View File

@ -920,7 +920,7 @@ bool ftDataMultiplex::handleRecvChunkCrcRequest(const std::string& peerId, const
if(fd == NULL) if(fd == NULL)
{ {
std::cerr << "Cannot read file " << filename << ". Something's wrong!" << std::endl; std::cerr << "Cannot read file " << filename << ". Something's wrong!" << std::endl;
delete buf ; delete[] buf ;
return false ; return false ;
} }
uint32_t len ; uint32_t len ;
@ -932,6 +932,7 @@ bool ftDataMultiplex::handleRecvChunkCrcRequest(const std::string& peerId, const
fclose(fd) ; fclose(fd) ;
crc = RsDirUtil::sha1sum(buf,len) ; crc = RsDirUtil::sha1sum(buf,len) ;
delete[] buf ;
// update cache // update cache
{ {