mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-02-21 00:27:19 +08:00
[examples]Fixed an issue where fclose was not used after using fopen
This commit is contained in:
parent
7693c6f5ab
commit
f5f5bc96f8
@ -8,7 +8,9 @@ static int perror_entry(void)
|
|||||||
{
|
{
|
||||||
printf("perror test:");
|
printf("perror test:");
|
||||||
perror("nulltest.txt");
|
perror("nulltest.txt");
|
||||||
|
return -1;
|
||||||
}
|
}
|
||||||
|
fclose(stream);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user