Skip to content

gslice: Do not try to memset-0 NULL a pointer

Marco Trevisan requested to merge 3v1n0/glib:force-non-null-gslice-free into main

According to the docs, g_slice_free1() is supposed to do nothing if @mem_block is NULL, but we still try to zero it in case we're using g_mem_gc_friendly.

So avoid this case.

Closes: #2908 (closed)

Merge request reports