mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-02-28 03:47:11 +08:00
commit
fe66001bd9
@ -25,6 +25,7 @@ void list_dir(const char* path)
|
|||||||
fullpath = rt_malloc(256);
|
fullpath = rt_malloc(256);
|
||||||
if (fullpath == RT_NULL)
|
if (fullpath == RT_NULL)
|
||||||
{
|
{
|
||||||
|
closedir(dir);
|
||||||
rt_kprintf("no memory\n");
|
rt_kprintf("no memory\n");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user