addded null check to why2_deallocate

This commit is contained in:
Václav Šmejkal 2024-02-25 12:25:29 +01:00
parent 0abd38e877
commit a141065189
Signed by: ENGO150
GPG Key ID: 4A57E86482968843

View File

@ -191,6 +191,8 @@ void *why2_opendir(char *name)
void why2_deallocate(void *pointer)
{
if (pointer == NULL) return; //DEALLOCATING NULL
//VARIABLES
node_t *node = get_node(pointer);