From 1e78d701accc36a158abb588c8523ac0d4bd248a Mon Sep 17 00:00:00 2001 From: Peter Jones Date: Wed, 17 Feb 2021 21:06:28 -0500 Subject: parse_sbat: handle the realloc failure leak and batch allocations. Signed-off-by: Peter Jones --- include/sbat.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/sbat.h b/include/sbat.h index 7441fa00..94ce01cb 100644 --- a/include/sbat.h +++ b/include/sbat.h @@ -25,6 +25,7 @@ struct sbat_entry { }; EFI_STATUS parse_sbat(char *sbat_base, size_t sbat_size, size_t *sbats, struct sbat_entry ***sbat); +void cleanup_sbat_entries(size_t n, struct sbat_entry **entries); EFI_STATUS verify_sbat(size_t n, struct sbat_entry **entries, list_t *var_entries); -- cgit v1.2.3