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

Unified Diff: src/platform/vboot_reference/include/rsa_utility.h

Issue 858008: VBoot Reference: Fix many memory leaks. (Closed)
Patch Set: Created 10 years, 9 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
Index: src/platform/vboot_reference/include/rsa_utility.h
diff --git a/src/platform/vboot_reference/include/rsa_utility.h b/src/platform/vboot_reference/include/rsa_utility.h
index 71492ae659a2104db91cfb2b734e07ef51ef5edb..62665bd67291b762e686f44ac116621117425df0 100644
--- a/src/platform/vboot_reference/include/rsa_utility.h
+++ b/src/platform/vboot_reference/include/rsa_utility.h
@@ -14,6 +14,10 @@
* [algorithm]. */
int RSAProcessedKeySize(int algorithm);
+/* Allocate a new RSAPublicKey structure and initialize its pointer fields to
+ * NULL */
+RSAPublicKey* RSAPublicKeyNew(void);
+
/* Deep free the contents of [key]. */
void RSAPublicKeyFree(RSAPublicKey* key);

Powered by Google App Engine
This is Rietveld 408576698