whenever i run this code:
void _freecommands(void)
{
command_t *com;
for(com = cmd.commands; com->name; com = com->next)
free (com);
}
i get one, even though i've malloc'd them previously and the conditional statement checks if they're not valid
i don't understand why, can someone help me?