Updated the file head

This commit is contained in:
Sambo Chea 2020-08-02 19:49:41 +07:00
parent ff0e21d42b
commit 5d13eb0e38

View File

@ -299,7 +299,8 @@ void read_file()
// we need to clear it first
// before we re-initailize the new data
STUDENT *temp;
while (head != NULL) {
while (head != NULL)
{
temp = head;
head = head->next;
free(temp);