Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
flash: npcx: fix memory leak in npcx_flash_bank_command
Recent commit 62f76b2 ("flash/nor: add support for Nuvoton NPCX4/K3 series flash") introduces a memory leak for a missing free() on early return for an error. Add the free() on the return path on error. Change-Id: Ica8568a986802e23df2ab7bed4e8cc4bbb6305a5 Signed-off-by: Antonio Borneo <[email protected]> Fixes: 62f76b2 ("flash/nor: add support for Nuvoton NPCX4/K3 series flash") Reviewed-on: https://review.openocd.org/c/openocd/+/7894 Tested-by: jenkins Reviewed-by: Tomas Vanek <[email protected]>
- Loading branch information