diff --git a/src/core/lib/flags.c b/src/core/lib/flags.c index 366ae9a..5b340c9 100644 --- a/src/core/lib/flags.c +++ b/src/core/lib/flags.c @@ -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)