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

Unified Diff: src/platform/vboot_reference/tests/rsa_verify_benchmark.c

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/tests/rsa_verify_benchmark.c
diff --git a/src/platform/vboot_reference/tests/rsa_verify_benchmark.c b/src/platform/vboot_reference/tests/rsa_verify_benchmark.c
index f3089560cd9374de017fc1249f2dc00dac428e33..ba108be2841c06931bcf538129076b078d5dc0dc 100644
--- a/src/platform/vboot_reference/tests/rsa_verify_benchmark.c
+++ b/src/platform/vboot_reference/tests/rsa_verify_benchmark.c
@@ -9,6 +9,7 @@
#include "file_keys.h"
#include "padding.h"
#include "rsa.h"
+#include "rsa_utility.h"
#include "timer_utils.h"
#include "utility.h"
@@ -80,7 +81,7 @@ int SpeedTestAlgorithm(int algorithm) {
failure:
Free(signature);
Free(digest);
- Free(key);
+ RSAPublicKeyFree(key);
return error_code;
}

Powered by Google App Engine
This is Rietveld 408576698