mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
fixed memory leak after receiving RsNxsItem deserialised from decrypted memory
This commit is contained in:
parent
0d3ff0e3aa
commit
fba3d37126
@ -3876,6 +3876,7 @@ bool RsGxsNetService::decryptSingleNxsItem(const RsNxsEncryptedDataItem *encrypt
|
||||
if(decrypted_mem!=NULL)
|
||||
{
|
||||
ditem = RsNxsSerialiser(mServType).deserialise(decrypted_mem,&decrypted_len) ;
|
||||
free(decrypted_mem) ;
|
||||
|
||||
if(ditem != NULL)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user