contrib/gdb-7/gdb/utils.c
void
free_current_contents (void *ptr)
{
  void **location = ptr;

  if (location == NULL)
    internal_error (__FILE__, __LINE__,
		    _("free_current_contents: NULL pointer"));
  if (*location != NULL)
    {
      xfree (*location);
      *location = NULL;
    }
}
/* This function is useful for cleanups.
   Do

   foo = xmalloc (...);
   old_chain = make_cleanup (free_current_contents, &foo);

   to arrange to free the object thus allocated.  */
This function is useful for cleanups.
Do



to arrange to free the object thus allocated.
This function is useful for cleanups . Do to arrange to free the object thus allocated .
void
free_current_contents (void *ptr)
{
  void **location = ptr;
  if (location == NULL)
    internal_error (__FILE__, __LINE__,
		    _("free_current_contents: NULL pointer"));
  if (*location != NULL)
    {
      xfree (*location);
      *location = NULL;
    }
}
void free_current_contents ( void * ptr ) { void * * location = ptr ; if ( location == NULL ) internal_error ( __FILE__ , __LINE__ , _ ( " " ) ) ; if ( * location != NULL ) { xfree ( * location ) ; * location = NULL ; } }
This function is useful for cleanups.
This function is useful for cleanups .