[PATCH] board: fsl_validate: Fix resource leak issue

2021-08-01 Thread Kshitiz Varshney
Free dynamically allocated memory before every return statement in calc_img_key_hash() and calc_esbchdr_esbc_hash() function. Verified the secure boot changes using ls1046afrwy board. Signed-off-by: Kshitiz Varshney --- board/freescale/common/fsl_validate.c | 36 --- 1

[PATCH] board: fsl_validate: Fix resource leak issue

2021-07-23 Thread Kshitiz Varshney
Free dynamically allocated memory before every return statement in calc_esbchdr_esbc_hash() function. Verified the secure boot changes using ls1046afrwy board. Signed-off-by: Kshitiz Varshney --- board/freescale/common/fsl_validate.c | 25 ++--- 1 file changed, 18

[PATCH] board: fsl_validate: Fix resource leak issue

2021-07-23 Thread Kshitiz Varshney
Free dynamically allocated memory before every return statement in calc_img_key_hash() function. Verified the secure boot changes using ls1046afrwy board. Signed-off-by: Kshitiz Varshney --- board/freescale/common/fsl_validate.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-)