Logo Search packages:      
Sourcecode: libnl2 version File versions  Download package

void nl_object_put ( struct nl_object *  obj  ) 

Release a reference from an object

  • obj object to release reference from

Definition at line 173 of file object.c.

References nl_object_free().

Referenced by nl_cache_remove(), and result_free_data().

{
      if (!obj)
            return;

      obj->ce_refcnt--;
      NL_DBG(4, "Returned object reference %p, %d remaining\n",
             obj, obj->ce_refcnt);

      if (obj->ce_refcnt < 0)
            BUG();

      if (obj->ce_refcnt <= 0)
            nl_object_free(obj);
}


Generated by  Doxygen 1.6.0   Back to index