From fced5af60c6bb9d69a3fde2b9dd8c0ff9c6fa6a9 Mon Sep 17 00:00:00 2001 From: csoler Date: Wed, 24 Jul 2013 21:35:19 +0000 Subject: [PATCH] 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 --- libretroshare/src/distrib/p3distribsecurity.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libretroshare/src/distrib/p3distribsecurity.cc b/libretroshare/src/distrib/p3distribsecurity.cc index 1e1100745..67f9e330a 100644 --- a/libretroshare/src/distrib/p3distribsecurity.cc +++ b/libretroshare/src/distrib/p3distribsecurity.cc @@ -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);