fixed memory leak after receiving RsNxsItem deserialised from decrypted memory

This commit is contained in:
csoler 2016-04-21 19:47:34 -04:00
parent 0d3ff0e3aa
commit fba3d37126

View File

@ -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)
{