From d782d8eed9c8f29346a1199aed3d5947c4182b66 Mon Sep 17 00:00:00 2001 From: csoler Date: Thu, 15 May 2014 21:08:23 +0000 Subject: [PATCH] forgot to free memory. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7369 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- libretroshare/src/gxs/gxssecurity.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/libretroshare/src/gxs/gxssecurity.cc b/libretroshare/src/gxs/gxssecurity.cc index 8c4b070da..6c468478c 100644 --- a/libretroshare/src/gxs/gxssecurity.cc +++ b/libretroshare/src/gxs/gxssecurity.cc @@ -398,6 +398,7 @@ std::string GxsSecurity::getRsaKeySign(RSA *pubkey) BN_bn2bin(pubkey -> e, &tmp[lenn]); Sha1CheckSum s = RsDirUtil::sha1sum(tmp,lenn+lene) ; + delete[] tmp ; // Copy first CERTSIGNLEN bytes from the hash of the public modulus and exponent // We should not be using strings here, but a real ID. To be done later.