for (l = _dl_loaded; l != NULL; l = l->l_next)
for (l = GL(dl_loaded); l != NULL; l = l->l_next)
free_mem (void){  struct link_map *l;  struct r_search_path_elem *d;  /* Remove all search directories.  */  d = _dl_all_dirs;  while (d != _dl_init_all_dirs)    {      struct r_search_path_elem *old = d;      d = d->next;      free (old);    }  /* Remove all additional names added to the objects.  */  for (l = _dl_loaded; l != NULL; l = l->l_next)    {      struct libname_list *lnp = l->l_libname->next;      l->l_libname->next = NULL;      while (lnp != NULL)	{	  struct libname_list *old = lnp;	  lnp = lnp->next;	  if (! old->dont_free)	    free (old);	}    }}