src/c/examples/mycomponent/mycomponent.c
extern void my_component_free (my_component_t * comp)
{
  if (comp && iot_component_dec_ref (&comp->component))
  {
    iot_log_trace (comp->logger, "my_component_free()");
    iot_logger_free (comp->logger);
    iot_component_fini (&comp->component);
    free (comp);
  }
}
/* Component free function,  Only actually free if reference count is zero. */
Component free function,  Only actually free if reference count is zero.
Component free function Only actually free if reference count is zero .
extern void my_component_free (my_component_t * comp)
{
  if (comp && iot_component_dec_ref (&comp->component))
  {
    iot_log_trace (comp->logger, "my_component_free()");
    iot_logger_free (comp->logger);
    iot_component_fini (&comp->component);
    free (comp);
  }
}
extern void my_component_free ( my_component_t * comp ) { if ( comp && iot_component_dec_ref ( & comp -> component ) ) { iot_log_trace ( comp -> logger , " " ) ; iot_logger_free ( comp -> logger ) ; iot_component_fini ( & comp -> component ) ; free ( comp ) ; } }
Component free function,  Only actually free if reference count is zero.
Component free function Only actually free if reference count is zero .