Some memory leaks and out of bounds array access fixed (#4498)

This commit is contained in:
Damjan Adamic
2017-02-26 12:39:26 +01:00
committed by Bertrand Songis
parent 1910af51b6
commit 7081f924de
7 changed files with 35 additions and 31 deletions
+1
View File
@@ -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]);