diff options
Diffstat (limited to 'tests/vboot_common3_tests.c')
-rw-r--r-- | tests/vboot_common3_tests.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/vboot_common3_tests.c b/tests/vboot_common3_tests.c index b5499f66..b5c0cc93 100644 --- a/tests/vboot_common3_tests.c +++ b/tests/vboot_common3_tests.c @@ -24,7 +24,7 @@ static void ReChecksumKeyBlock(VbKeyBlockHeader *h) SHA512_DIGEST_ALGORITHM); Memcpy(GetSignatureData(&h->key_block_checksum), newchk, SHA512_DIGEST_SIZE); - free(newchk); + VbExFree(newchk); } static void KeyBlockVerifyTest(const VbPublicKey *public_key, @@ -376,5 +376,8 @@ int main(int argc, char *argv[]) return -1; } + if (vboot_api_stub_check_memory()) + return 255; + return gTestSuccess ? 0 : 255; } |