mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-16 04:47:11 +00:00
Add memory leak checking
Add checks that the vboot library does not leak memory. This works by tracking VbExMalloc() calls and making sure that they have an associated VbExFree(). Adjust host_signature to use VbExFree() instead of free(), so that this scheme works correctly for existing code. BUG=chrome-os-partner:21115 BRANCH=pit TEST=FEATURES=test emerge-peach_pit vboot_reference Change-Id: I6ccccfbcc162fc43fb75862cd0eddad78ce8b18a Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/66175
This commit is contained in:
committed by
chrome-internal-fetch
parent
1a1138180d
commit
2500185a83
@@ -313,5 +313,8 @@ int main(void)
|
||||
{
|
||||
VbTryLoadKernelTest();
|
||||
|
||||
if (vboot_api_stub_check_memory())
|
||||
return 255;
|
||||
|
||||
return gTestSuccess ? 0 : 255;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user