diff options
Diffstat (limited to 'tests/vboot_common2_tests.c')
-rw-r--r-- | tests/vboot_common2_tests.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/vboot_common2_tests.c b/tests/vboot_common2_tests.c index 564518ac..220391cb 100644 --- a/tests/vboot_common2_tests.c +++ b/tests/vboot_common2_tests.c @@ -102,7 +102,7 @@ static void VerifyDigestTest(const VbPublicKey *public_key, RSAPublicKeyFree(rsa); free(sig); - free(digest); + VbExFree(digest); } static void ReSignKernelPreamble(VbKernelPreambleHeader *h, @@ -277,5 +277,8 @@ int main(int argc, char *argv[]) { return -1; } + if (vboot_api_stub_check_memory()) + return 255; + return gTestSuccess ? 0 : 255; } |