fixed segfault by deallocating wrong pointer

yes so I was deallocating node before the last node, not the last one... Ima dum
This commit is contained in:
Václav Šmejkal 2023-02-04 17:41:37 +01:00
parent 951d112a4f
commit 253989ccc9
Signed by: ENGO150
GPG Key ID: 4A57E86482968843

View File

@ -80,7 +80,7 @@ void remove_node_from_end(void)
buffer -> next = NULL; //UNLINK
}
free(buffer);
free(buffer -> next);
}
char *get_last_node_identifier(void)