addded null check to why2_deallocate
This commit is contained in:
parent
0abd38e877
commit
a141065189
@ -191,6 +191,8 @@ void *why2_opendir(char *name)
|
|||||||
|
|
||||||
void why2_deallocate(void *pointer)
|
void why2_deallocate(void *pointer)
|
||||||
{
|
{
|
||||||
|
if (pointer == NULL) return; //DEALLOCATING NULL
|
||||||
|
|
||||||
//VARIABLES
|
//VARIABLES
|
||||||
node_t *node = get_node(pointer);
|
node_t *node = get_node(pointer);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user