path.c
/**
* free_list- frees the linked list containing the path directories
* @head: the linked list to be freed
* Return: nothing
*/
free_list- frees the linked list containing the path directories
free_list - frees the linked list containing the path directories
void free_list(path_node *head)
{
	path_node *temp;
	while (head != NULL)
	{
		temp = head;
		head = head->next;
		free(temp->path);
		free(temp);
	}
}
void free_list ( path_node * head ) { path_node * temp ; while ( head != NULL ) { temp = head ; head = head -> next ; free ( temp -> path ) ; free ( temp ) ; } }
free_list- frees the linked list containing the path directories
free_list - frees the linked list containing the path directories