added identifier reset at the end of why2_clean_memory

This commit is contained in:
Václav Šmejkal 2023-02-02 17:56:56 +01:00
parent c2cc6aa4ba
commit eec8d13a5c
Signed by: ENGO150
GPG Key ID: 4A57E86482968843

View File

@ -153,4 +153,6 @@ void why2_clean_memory(char *identifier)
} }
if (buffer -> identifier == identifier) remove_node(buffer); //LAST NODE if (buffer -> identifier == identifier) remove_node(buffer); //LAST NODE
why2_reset_memory_identifier(); //THIS WILL CAUSE SEGFAULT IF YOU DIDN'T USE why2_set_memory_identifier
} }