fixed free()/delete[] mismatch reported by valgrind

This commit is contained in:
csoler 2020-04-22 20:32:16 +02:00
parent 5120f693be
commit f9b731c92e
No known key found for this signature in database
GPG Key ID: 7BCA522266C0804C

View File

@ -1553,7 +1553,7 @@ std::string p3Peers::GetRetroshareInvite(
}
RsCertificate cert(detail, mem_block, mem_block_size);
delete[] mem_block;
free(mem_block);
return cert.toStdString();
}