]> git.dujemihanovic.xyz Git - u-boot.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)
commit0dfa9da277a4556f9e7faa0101c7694fe2b78733
treece78a1d99075c5811ce0c0ef86176f714b05f935
parent6466b95e7c94a48d8f8093b0a765fd51ab6e84ae
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