Skip to content
Snippets Groups Projects
Commit ba719995 authored by Jacob Garber's avatar Jacob Garber Committed by Nico Huber
Browse files

linux_mtd: Fix param memory leak


extract_programmer_param() stores allocated memory in param, so make
sure it is freed at the end of the function.

Change-Id: I363e66b49c1ed4034ac058b94a938c8bb197e048
Signed-off-by: default avatarJacob Garber <jgarber1@ualberta.ca>
Found-by: Coverity CID 1403823
Reviewed-on: https://review.coreboot.org/c/flashrom/+/34847


Tested-by: default avatarbuild bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: default avatarDavid Hendricks <david.hendricks@gmail.com>
parent 1c091d1a
No related branches found
No related tags found
No related merge requests found
......@@ -404,5 +404,6 @@ int linux_mtd_init(void)
ret = 0;
linux_mtd_init_exit:
free(param);
return ret;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment