/** * g_free: * @mem: the memory to free * * Frees the memory pointed to by @mem. * If @mem is %NULL it simply returns. */ void g_free (gpointer mem) { if (G_LIKELY (mem)) glib_mem_vtable.free (mem); TRACE(GLIB_MEM_FREE((void*) mem)); }
/** * g_free: * @mem: the memory to free * * Frees the memory pointed to by @mem. * If @mem is %NULL it simply returns. */ void g_free (gpointer mem) { if (G_UNLIKELY (!g_mem_initialized)) g_mem_init_nomessage(); if (G_LIKELY (mem)) glib_mem_vtable.free (mem); TRACE(GLIB_MEM_FREE((void*) mem)); }
/** * g_free: * @mem: (nullable): the memory to free * * Frees the memory pointed to by @mem. * * If @mem is %NULL it simply returns, so there is no need to check @mem * against %NULL before calling this function. */ void g_free (gpointer mem) { free (mem); TRACE(GLIB_MEM_FREE((void*) mem)); }