Skip to content
Snippets Groups Projects
Commit ef72484b authored by Antonio Borneo's avatar Antonio Borneo Committed by Spencer Oliver
Browse files

NOR/CFI: fix memory leak; check malloc return value


Every time command "flash probe #" is executed, memory
structures are re-allocated without preventive free()
of former areas, causing memory leak.
Also, memory allocation does not check return value,
determining segmentation fault in case of out of memory.

Signed-off-by: default avatarAntonio Borneo <borneo.antonio@gmail.com>
Signed-off-by: default avatarSpencer Oliver <ntfreak@users.sourceforge.net>
parent f1c1bed3
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment