Frees the memory pointed to by mem, assuming it is has the given size.
If mem is null this is a no-op (and size is ignored).
It is an error if size doesn’t match the size passed when mem was
allocated. size is passed to this function to allow optimizations in the
allocator. If you don’t know the allocation size, use g_free() instead.
In case a GCC compatible compiler is used, this function may be used
automatically via g_free() if the allocated size is known at compile time,
since GLib 2.78.
Frees the memory pointed to by
mem, assuming it is has the givensize.If
memisnullthis is a no-op (andsizeis ignored).It is an error if
sizedoesn’t match the size passed whenmemwas allocated.sizeis passed to this function to allow optimizations in the allocator. If you don’t know the allocation size, useg_free()instead.In case a GCC compatible compiler is used, this function may be used automatically via
g_free()if the allocated size is known at compile time, since GLib 2.78.