/* This function will free the memory used by a list structure, but the list data will remain in the heap. */
void dl_shallow_free(dep_list *dl)
/* This function will free the memory used by a list structure, but the list data will remain in the heap. */
void dl_shallow_free(dep_list *dl)
{
    while (dl != NULL) {
        dep_list *ptr = dl;
        dl = dl->next;
        free (ptr);
    }
}