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

Unified Diff: src/platform/vboot_reference/tests/firmware_image_tests.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/firmware_image_tests.c
diff --git a/src/platform/vboot_reference/tests/firmware_image_tests.c b/src/platform/vboot_reference/tests/firmware_image_tests.c
index 686af548bf56ed0e9439e2b45ef9e3ded882aff2..82c4f37d49a19adb9cce084db7ccc0d565841309 100644
--- a/src/platform/vboot_reference/tests/firmware_image_tests.c
+++ b/src/platform/vboot_reference/tests/firmware_image_tests.c
@@ -214,10 +214,10 @@ int main(int argc, char* argv[]) {
failure:
Free(firmware_blob);
- Free(image);
+ FirmwareImageFree(image);
Free(firmware_sign_key_buf);
Free(root_key_blob);
- Free(root_key);
+ RSAPublicKeyFree(root_key);
return error_code;
}

Powered by Google App Engine
This is Rietveld 408576698