]> git.baikalelectronics.ru Git - uboot.git/commit
board: fsl_validate: Fix resource leak issue
authorKshitiz Varshney <kshitiz.varshney@nxp.com>
Sun, 1 Aug 2021 12:31:45 +0000 (14:31 +0200)
committerPriyanka Jain <priyanka.jain@nxp.com>
Wed, 18 Aug 2021 10:25:15 +0000 (15:55 +0530)
commit7a27f46bf3343924ff11fe3ae047ca314e982b7d
treece78a1d99075c5811ce0c0ef86176f714b05f935
parentfa31c9712f08162ecb32585fb475500146f920d2
board: fsl_validate: Fix resource leak issue

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 <kshitiz.varshney@nxp.com>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
board/freescale/common/fsl_validate.c