src/GraphCreation.c
/*
 * FUNCTION NAME: removeUniqueCitiesList
 *
 * DESCRIPTION:
 * Function frees memory from dynamically allocated elements.
 */
FUNCTION NAME: removeUniqueCitiesList
DESCRIPTION:
Function frees memory from dynamically allocated elements.
FUNCTION NAME : removeUniqueCitiesList DESCRIPTION : Function frees memory from dynamically allocated elements .
void removeUniqueCitiesList(UniqueCitiesList_t* unique_cities)
{
    UniqueCitiesListNode_t* temp;
    temp = unique_cities->head;
    while (temp != NULL) {
        unique_cities->head = unique_cities->head->next;
        free(temp->city);
        free(temp);
        temp = unique_cities->head;
    }
}
void removeUniqueCitiesList ( UniqueCitiesList_t * unique_cities ) { UniqueCitiesListNode_t * temp ; temp = unique_cities -> head ; while ( temp != NULL ) { unique_cities -> head = unique_cities -> head -> next ; free ( temp -> city ) ; free ( temp ) ; temp = unique_cities -> head ; } }
FUNCTION NAME: removeUniqueCitiesList
 DESCRIPTION:
 Function frees memory from dynamically allocated elements.
FUNCTION NAME : removeUniqueCitiesList DESCRIPTION : Function frees memory from dynamically allocated elements .