mirror of
https://github.com/opentx/opentx.git
synced 2025-07-16 04:45:17 +03:00
Some memory leaks and out of bounds array access fixed (#4498)
This commit is contained in:
parent
1910af51b6
commit
7081f924de
7 changed files with 35 additions and 31 deletions
|
@ -116,6 +116,7 @@ int cliLs(const char ** argv)
|
|||
if (res != FR_OK || fno.fname[0] == 0) break; /* Break on error or end of dir */
|
||||
serialPrint(fno.fname);
|
||||
}
|
||||
f_closedir(&dir);
|
||||
}
|
||||
else {
|
||||
serialPrint("%s: Invalid directory \"%s\"", argv[0], argv[1]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue