Caller allocated boxed types or structs are not fully released
We do release the struct but not its content:
==1834004==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 4 byte(s) in 1 object(s) allocated from:
#0 0x7f53ed2fa302 in __interceptor_malloc ../../../../src/libsanitizer/lsan/lsan_interceptors.cpp:75
#1 0x7f53ecf93d58 in g_malloc ../../gobject-introspection/subprojects/glib/glib/gmem.c:130
#2 0x7f53ecfae0ad in g_slice_alloc0 ../../gobject-introspection/subprojects/glib/glib/gslice.c:276
#3 0x7f53e95973e8 in regress_aliased_caller_alloc /opt/dev/GNOME/share/gobject-introspection-1.0/tests/regress.c:4687
#4 0x7f53eca75e2d (/lib/x86_64-linux-gnu/libffi.so.8+0x7e2d)
#5 0x7f53eca72492 (/lib/x86_64-linux-gnu/libffi.so.8+0x4492)
#6 0x7f53ed1053a5 in Gjs::Function::invoke(JSContext*, JS::CallArgs const&, JS::Handle<JSObject*>, _GIArgument*) ../gi/function.cpp:1003
#7 0x7f53ed105e5a in Gjs::Function::call(JSContext*, unsigned int, JS::Value*) ../gi/function.cpp:1183
#8 0x7f53eaee8c81 in CallJSNative(JSContext*, bool (*)(JSContext*, unsigned int, JS::Value*), js::CallReason, JS::CallArgs const&) .././js/src/vm/Interpreter.cpp:420
#9 0x7f53eaee8c81 in js::InternalCallOrConstruct(JSContext*, JS::CallArgs const&, js::MaybeConstruct, js::CallReason) .././js/src/vm/Interpreter.cpp:493
#10 0x7f53eaef346b in InternalCall .././js/src/vm/Interpreter.cpp:574
#11 0x7f53eaef346b in js::CallFromStack(JSContext*, JS::CallArgs const&) .././js/src/vm/Interpreter.cpp:578
#12 0x7f53eaef346b in Interpret .././js/src/vm/Interpreter.cpp:3314
#13 0x7f53eaee8692 in js::RunScript(JSContext*, js::RunState&) .././js/src/vm/Interpreter.cpp:389
#14 0x7f53eaee8a8e in js::InternalCallOrConstruct(JSContext*, JS::CallArgs const&, js::MaybeConstruct, js::CallReason) .././js/src/vm/Interpreter.cpp:539
#15 0x7f53eaee8e6b in InternalCall .././js/src/vm/Interpreter.cpp:574
#16 0x7f53eaee8e6b in js::Call(JSContext*, JS::Handle<JS::Value>, JS::Handle<JS::Value>, js::AnyInvokeArgs const&, JS::MutableHandle<JS::Value>, js::CallReason) .././js/src/vm/Interpreter.cpp:605
#17 0x7f53eb3bfdd9 in js::jit::InvokeFunction(JSContext*, JS::Handle<JSObject*>, bool, bool, unsigned int, JS::Value*, JS::MutableHandle<JS::Value>) ../jit/./js/src/jit/VMFunctions.cpp:527
#18 0x7f53eb3bff8a in js::jit::InvokeFromInterpreterStub(JSContext*, js::jit::InterpreterStubExitFrameLayout*) ../jit/./js/src/jit/VMFunctions.cpp:551
#19 0x8555ef18d73 (<unknown module>)