| commit | 6266292871d8ac93caf7068ce6490829efb280ca | [log] [tgz] |
|---|---|---|
| author | Lukas Selinka <lukas.selinka@secunet.com> | Fri Aug 07 12:51:22 2026 +0200 |
| committer | Nico Huber <nico.h@gmx.de> | Thu Aug 13 13:51:36 2026 +0000 |
| tree | 4d31f3d44f17d2f517d72742cef319eafd0eeb25 | |
| parent | 18e73985f99dbfded7dc6aa95eec4fd9f8e9f6bd [diff] [blame] |
Fix memory leaks Change-Id: I2933bc09af6de8210a536f945cc22b66814d4096 Signed-off-by: Lukas Selinka <lukas.selinka@secunet.com> Reviewed-on: https://review.sourcearcade.org/c/flashprog/+/587 Reviewed-by: Nico Huber <nico.h@gmx.de> Tested-by: Nico Huber <nico.h@gmx.de>
diff --git a/libflashprog.c b/libflashprog.c index 24885a3..c2c12a1 100644 --- a/libflashprog.c +++ b/libflashprog.c
@@ -177,6 +177,9 @@ { if (programmer_shutdown(flashprog)) return 1; + + if (flashprog->param) + free(flashprog->param); free(flashprog); return 0; }