fixed memory leak in key signature verification

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6539 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2013-07-24 21:35:19 +00:00
parent a823cc9edc
commit fced5af60c

View File

@ -388,7 +388,7 @@ bool p3DistribSecurity::validateDistribGrp(RsDistribGrp *newGrp)
unsigned int siglen = tmpSign.signData.bin_len;
/* clear signature */
newGrp->adminSignature.ShallowClear();
newGrp->adminSignature.TlvClear();
uint32_t size = serialType->size(newGrp);
char* data = new char[size];
@ -415,7 +415,7 @@ bool p3DistribSecurity::validateDistribGrp(RsDistribGrp *newGrp)
/* restore signature */
newGrp->adminSignature = tmpSign;
tmpSign.ShallowClear();
tmpSign.TlvClear();
/* clean up */
EVP_PKEY_free(key);