This series of patches fixes memory leaks related to tpm_bank_info allocations and entry.template as well as gcc compiler warnings when building with -fanalyzer (gcc 12.2.1). This series is intended to be applied on top of Mimi's current series at https://github.com/mimizohar/ima-evm-utils/tree/next-testing . Stefan Stefan Berger (4): Fix memory leaks of tpm_bank_info allocations Fix memory leak related to entry.template Add assert to ensure that algo_name in bank is set Change condition to free(pub) src/evmctl.c | 47 ++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 40 insertions(+), 7 deletions(-) base-commit: f6abaed5d0d0a4478cf25a8096a4ff44be4a234e -- 2.38.1