Some memory leaks and out of bounds array access fixed (#4498)
This commit is contained in:
committed by
Bertrand Songis
parent
1910af51b6
commit
7081f924de
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user