diff --git a/libretroshare/src/rsserver/p3peers.cc b/libretroshare/src/rsserver/p3peers.cc index 50c026c7c..35be7e728 100644 --- a/libretroshare/src/rsserver/p3peers.cc +++ b/libretroshare/src/rsserver/p3peers.cc @@ -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(); }