修复了没有关闭文件的BUG
This commit is contained in:
parent
54ea4ecc70
commit
5033d70343
1 changed files with 1 additions and 0 deletions
|
@ -291,6 +291,7 @@ struct Student *CreateFromFile(char *filename)
|
|||
}
|
||||
p->next = NULL;
|
||||
free(temp);
|
||||
fclose(fp);
|
||||
|
||||
return head;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue