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:
parent
951d112a4f
commit
253989ccc9
@ -80,7 +80,7 @@ void remove_node_from_end(void)
|
|||||||
buffer -> next = NULL; //UNLINK
|
buffer -> next = NULL; //UNLINK
|
||||||
}
|
}
|
||||||
|
|
||||||
free(buffer);
|
free(buffer -> next);
|
||||||
}
|
}
|
||||||
|
|
||||||
char *get_last_node_identifier(void)
|
char *get_last_node_identifier(void)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user