while compiling x11-libs/cairo, currently version 1.17.6, one would get the following "warning" from the compiler: cairo-1.17.6/src/cairo-recording-surface.c:259:5: warning: ‘free’ called on pointer ‘surface_168(D)’ with nonzero offset 432 [-Wfree-nonheap-object] This would happen only in case of an error in the _cairo_recording_surface_create_bbtree function but seems trivial to fix. Reproducible: Always Steps to Reproduce: 1. Build x11-libs/cairo 2. Check the logs for warnings 3. Actual Results: there is a free called on a non allocated object Expected Results: no such a warning ! As the issue seems to be present in the trunk code, a ticket has been opened at the cairo repository with the same proposed patch as the one following: https://gitlab.freedesktop.org/cairo/cairo/-/issues/645
Created attachment 851500 [details] build log for x11-libs/cairo-1.17.6 without patch
Created attachment 851502 [details, diff] Patch to avoid freeing non allocated object
In next release.