i'm getting a segmentation fault when unallocating memory using free.
int *array;
array = (int *)malloc(size);
..
..
if(array != NULL) {free(array);}
i'm doing a lot of stuff in between.
what conditions would give a seg fault here?
i should join this forum really!
int *array;
array = (int *)malloc(size);
..
..
if(array != NULL) {free(array);}
i'm doing a lot of stuff in between.
what conditions would give a seg fault here?
i should join this forum really!