[examples]Fixed an issue where fclose was not used after using fopen

This commit is contained in:
Z-Xiaoyuan 2023-04-29 12:34:18 +08:00 committed by Man, Jianting (Meco)
parent 7693c6f5ab
commit f5f5bc96f8
1 changed files with 2 additions and 0 deletions

View File

@ -8,7 +8,9 @@ static int perror_entry(void)
{
printf("perror test:");
perror("nulltest.txt");
return -1;
}
fclose(stream);
return 0;
}