if(udata->type_ptr->cls->free_func && (udata->type_ptr->cls->free_func)((void *)id->obj_ptr) < 0) {
 
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 * Copyright by The HDF Group.                                               *
 * Copyright by the Board of Trustees of the University of Illinois.         *
 * All rights reserved.                                                      *
 *                                                                           *
 * This file is part of HDF5.  The full HDF5 copyright notice, including     *
 * terms governing use, modification, and redistribution, is contained in    *
 * the files COPYING and Copyright.html.  COPYING can be found at the root   *
 * of the source code distribution tree; Copyright.html can be found at the  *
 * root level of an installed copy of the electronic HDF5 document set and   *
 * is linked from the top-level documents page.  It can also be found at     *
 * http://hdfgroup.org/HDF5/doc/Copyright.html.  If you do not have          *
 * access to either file, you may request a copy from help@hdfgroup.org.     *
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/*
 * FILE:    H5I.c - Internal storage routines for handling "IDs"
 *
 * REMARKS: ID's which allow objects (void *'s currently) to be bundled
 *      into "types" for more general storage.
 *
 * DESIGN:  The types are stored in an array of pointers to store each
 *      type in an element. Each "type" node contains a link to a
 *      hash table to manage the IDs in each type.  Allowed types are
 *      values within the range 1 to H5I_MAX_NUM_TYPES and are given out
 *      at run-time.  Types used by the library are stored in global
 *      variables defined in H5Ipublic.h.
 *
 * AUTHOR:  Quincey Koziol
 *
 * MODIFICATIONS:
 *  1/3/96  - Starting writing specs & coding prototype
 *  1/7/96  - Finished coding prototype
 *  6/10/97 - Moved into HDF5 library
 *  5/18/04 - Expanded to allow registration of new types at run-time
 */
#include "H5Imodule.h"          /* This source code file is part of the H5I module */
#include "H5private.h"      /* Generic Functions            */
#include "H5ACprivate.h"        /* Metadata cache                       */
#include "H5Eprivate.h"     /* Error handling           */
#include "H5FLprivate.h"    /* Free Lists                           */
#include "H5Ipkg.h"     /* IDs                  */
#include "H5MMprivate.h"    /* Memory management            */
#include "H5Oprivate.h"     /* Object headers           */
#include "H5SLprivate.h"    /* Skip Lists                           */
/* Define this to compile in support for dumping ID information */
/* #define H5I_DEBUG_OUTPUT */