So, I'm finishing up pset5 and I'm now just trying to make sure theres no memory leaks. Unfortunaly there are 244 bytes being lost and I'm not sure why they're being lost. This is my free code:
bool freeStuff(node* spider) //recursive function to free
{
for(int i = 0; i < 27; i++)
{
if(spider -> children[i] != NULL)
{
freeStuff(spider -> children[i]);
}
}
free(spider);
return true;
}
bool unload(void)
{
return freeStuff(head);
}
Full code: http://pastebin.com/L9e58t9c