Hi I have an issue with freeing the family memory in my code: when I run my code the issue seems to be from the free memory for the parents section but I am not sure what's wrong
void free_family(person *p)
{
// TODO: Handle base case
if (p == NULL){
return;
}
// TODO: Free parents
free(p->parents[0]);
free(p->parents[1]);
// TODO: Free child
free(p);
}