修复了没有关闭文件的BUG

This commit is contained in:
zhbaor 2021-01-06 16:35:42 +08:00
parent 54ea4ecc70
commit 5033d70343

View file

@ -291,6 +291,7 @@ struct Student *CreateFromFile(char *filename)
}
p->next = NULL;
free(temp);
fclose(fp);
return head;
}