Skip to content

gmem: Add g_free_sized() and g_aligned_free_sized()

Philip Withnall requested to merge pwithnall/glib:free-sized into main

These wrap free_sized() and free_aligned_sized(), which are present in C23[1]. This means that user code can start to use them without checking for C23 support everywhere first.

It also means we can use them internally in GSlice to get a bit of performance for the code which still uses it.

See and

[1]: Specifically, section of the latest C23 draft at

Signed-off-by: Philip Withnall

Merge request reports