Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(853)

Unified Diff: crypto/ec_signature_creator_nss.cc

Issue 9302016: Fix an SECItem leak in the new ECSignatureCreator class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: crypto/ec_signature_creator_nss.cc
diff --git a/crypto/ec_signature_creator_nss.cc b/crypto/ec_signature_creator_nss.cc
index 147535b28e9a1d3de08bec3ffa13c141c567bf6d..05230ee21b062107982a504cbf4ed22797704bf7 100644
--- a/crypto/ec_signature_creator_nss.cc
+++ b/crypto/ec_signature_creator_nss.cc
@@ -93,6 +93,7 @@ bool ECSignatureCreator::Sign(const uint8* data,
// Copy the signed data into the output vector.
signature->assign(result->data, result->data + result->len);
+ SECITEM_FreeItem(result, PR_FALSE);
agl 2012/01/31 15:40:55 Thanks for catching this, but there's an underlyin
Ryan Hamilton 2012/01/31 16:37:16 No kidding? Thanks for catching this. As per wtc
return true;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698