To help you better understand what the leaks origins might be, i had this output of valgrind(valgrind-3.20.0 Linux) of the executable of the example in the bottom of this repo's README.md. (I hope it serves useful!)
==23779== Memcheck, a memory error detector
==23779== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al.
==23779== Using Valgrind-3.20.0-5147d671e4-20221024 and LibVEX; rerun with -h for copyright info
==23779== Command: ./a.out
==23779== Parent PID: 3604
==23779==
--23779--
--23779-- Valgrind options:
--23779-- --verbose
--23779-- --leak-check=full
--23779-- --track-origins=yes
--23779-- --log-file=valgrind_output_new
--23779-- Contents of /proc/version:
--23779-- Linux version 5.8.0-63-generic (buildd@lgw01-amd64-035) (gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #71~20.04.1-Ubuntu SMP Thu Jul 15 17:46:08 UTC 2021
--23779--
--23779-- Arch and hwcaps: AMD64, LittleEndian, amd64-cx16-lzcnt-rdtscp-sse3-ssse3
--23779-- Page sizes: currently 4096, max supported 4096
--23779-- Valgrind library directory: /usr/local/libexec/valgrind
--23779-- Reading syms from /home/linus-penguin/mlx_project/a.out
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/ld-2.31.so
--23779-- Considering /usr/lib/x86_64-linux-gnu/ld-2.31.so ..
--23779-- .. CRC mismatch (computed 6cded93a wanted 1af57820)
--23779-- Considering /lib/x86_64-linux-gnu/ld-2.31.so ..
--23779-- .. CRC mismatch (computed 6cded93a wanted 1af57820)
--23779-- Considering /usr/lib/debug/lib/x86_64-linux-gnu/ld-2.31.so ..
--23779-- .. CRC is valid
--23779-- Reading syms from /usr/local/libexec/valgrind/memcheck-amd64-linux
--23779-- object doesn't have a dynamic symbol table
--23779-- Scheduler: using generic scheduler lock implementation.
--23779-- Reading suppressions file: /usr/local/libexec/valgrind/default.supp
==23779== embedded gdbserver: reading from /tmp/vgdb-pipe-from-vgdb-to-23779-by-linus-penguin-on-???
==23779== embedded gdbserver: writing to /tmp/vgdb-pipe-to-vgdb-from-23779-by-linus-penguin-on-???
==23779== embedded gdbserver: shared mem /tmp/vgdb-pipe-shared-mem-vgdb-23779-by-linus-penguin-on-???
==23779==
==23779== TO CONTROL THIS PROCESS USING vgdb (which you probably
==23779== don't want to do, unless you know exactly what you're doing,
==23779== or are doing some strange experiment):
==23779== /usr/local/libexec/valgrind/../../bin/vgdb --pid=23779 ...command...
==23779==
==23779== TO DEBUG THIS PROCESS USING GDB: start GDB like this
==23779== /path/to/gdb ./a.out
==23779== and then give GDB the following command
==23779== target remote | /usr/local/libexec/valgrind/../../bin/vgdb --pid=23779
==23779== --pid is optional if only one valgrind process is running
==23779==
--23779-- REDIR: 0x4022d80 (ld-linux-x86-64.so.2:strlen) redirected to 0x580be542 (vgPlain_amd64_linux_REDIR_FOR_strlen)
--23779-- REDIR: 0x4022b50 (ld-linux-x86-64.so.2:index) redirected to 0x580be55c (vgPlain_amd64_linux_REDIR_FOR_index)
--23779-- Reading syms from /usr/local/libexec/valgrind/vgpreload_core-amd64-linux.so
--23779-- Reading syms from /usr/local/libexec/valgrind/vgpreload_memcheck-amd64-linux.so
==23779== WARNING: new redirection conflicts with existing -- ignoring it
--23779-- old: 0x04022d80 (strlen ) R-> (0000.0) 0x580be542 vgPlain_amd64_linux_REDIR_FOR_strlen
--23779-- new: 0x04022d80 (strlen ) R-> (2007.0) 0x048426e0 strlen
--23779-- REDIR: 0x401f560 (ld-linux-x86-64.so.2:strcmp) redirected to 0x48436d0 (strcmp)
--23779-- REDIR: 0x40232e0 (ld-linux-x86-64.so.2:mempcpy) redirected to 0x4847330 (mempcpy)
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libglfw.so.3.3
--23779-- object doesn't have a symbol table
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libdl-2.31.so
--23779-- Considering /usr/lib/x86_64-linux-gnu/libdl-2.31.so ..
--23779-- .. CRC mismatch (computed a3ca3288 wanted 3cde2f36)
--23779-- Considering /lib/x86_64-linux-gnu/libdl-2.31.so ..
--23779-- .. CRC mismatch (computed a3ca3288 wanted 3cde2f36)
--23779-- Considering /usr/lib/debug/lib/x86_64-linux-gnu/libdl-2.31.so ..
--23779-- .. CRC is valid
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libc-2.31.so
--23779-- Considering /usr/lib/x86_64-linux-gnu/libc-2.31.so ..
--23779-- .. CRC mismatch (computed cd1655d1 wanted 09373696)
--23779-- Considering /lib/x86_64-linux-gnu/libc-2.31.so ..
--23779-- .. CRC mismatch (computed cd1655d1 wanted 09373696)
--23779-- Considering /usr/lib/debug/lib/x86_64-linux-gnu/libc-2.31.so ..
--23779-- .. CRC is valid
==23779== WARNING: new redirection conflicts with existing -- ignoring it
--23779-- old: 0x049733d0 (memalign ) R-> (1011.0) 0x048419a6 memalign
--23779-- new: 0x049733d0 (memalign ) R-> (1017.0) 0x04841979 aligned_alloc
==23779== WARNING: new redirection conflicts with existing -- ignoring it
--23779-- old: 0x049733d0 (memalign ) R-> (1011.0) 0x048419a6 memalign
--23779-- new: 0x049733d0 (memalign ) R-> (1017.0) 0x0484194c aligned_alloc
==23779== WARNING: new redirection conflicts with existing -- ignoring it
--23779-- old: 0x049733d0 (memalign ) R-> (1011.0) 0x048419a6 memalign
--23779-- new: 0x049733d0 (memalign ) R-> (1017.0) 0x04841979 aligned_alloc
==23779== WARNING: new redirection conflicts with existing -- ignoring it
--23779-- old: 0x049733d0 (memalign ) R-> (1011.0) 0x048419a6 memalign
--23779-- new: 0x049733d0 (memalign ) R-> (1017.0) 0x0484194c aligned_alloc
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libm-2.31.so
--23779-- Considering /usr/lib/x86_64-linux-gnu/libm-2.31.so ..
--23779-- .. CRC mismatch (computed b88da5c9 wanted 1658d783)
--23779-- Considering /lib/x86_64-linux-gnu/libm-2.31.so ..
--23779-- .. CRC mismatch (computed b88da5c9 wanted 1658d783)
--23779-- Considering /usr/lib/debug/lib/x86_64-linux-gnu/libm-2.31.so ..
--23779-- .. CRC is valid
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0
--23779-- object doesn't have a symbol table
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libpthread-2.31.so
--23779-- Considering /usr/lib/debug/.build-id/4f/c5fc33f4429136a494c640b113d76f610e4abc.debug ..
--23779-- .. build-id is valid
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0
--23779-- object doesn't have a symbol table
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libXau.so.6.0.0
--23779-- Considering /usr/lib/x86_64-linux-gnu/libXau.so.6.0.0 ..
--23779-- .. CRC mismatch (computed 7de9b6ad wanted e8a17129)
--23779-- Considering /lib/x86_64-linux-gnu/libXau.so.6.0.0 ..
--23779-- .. CRC mismatch (computed 7de9b6ad wanted e8a17129)
--23779-- object doesn't have a symbol table
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libXdmcp.so.6.0.0
--23779-- object doesn't have a symbol table
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libbsd.so.0.10.0
--23779-- object doesn't have a symbol table
--23779-- REDIR: 0x4978600 (libc.so.6:memmove) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--23779-- REDIR: 0x4977900 (libc.so.6:strncpy) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--23779-- REDIR: 0x4978930 (libc.so.6:strcasecmp) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--23779-- REDIR: 0x4977220 (libc.so.6:strcat) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--23779-- REDIR: 0x4977960 (libc.so.6:rindex) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--23779-- REDIR: 0x4979dd0 (libc.so.6:rawmemchr) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--23779-- REDIR: 0x4994e60 (libc.so.6:wmemchr) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--23779-- REDIR: 0x49949a0 (libc.so.6:wcscmp) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--23779-- REDIR: 0x4978760 (libc.so.6:mempcpy) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--23779-- REDIR: 0x4978590 (libc.so.6:bcmp) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--23779-- REDIR: 0x4977890 (libc.so.6:strncmp) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--23779-- REDIR: 0x49772d0 (libc.so.6:strcmp) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--23779-- REDIR: 0x49786c0 (libc.so.6:memset) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--23779-- REDIR: 0x4994960 (libc.so.6:wcschr) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--23779-- REDIR: 0x49777f0 (libc.so.6:strnlen) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--23779-- REDIR: 0x49773b0 (libc.so.6:strcspn) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--23779-- REDIR: 0x4978980 (libc.so.6:strncasecmp) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--23779-- REDIR: 0x4977350 (libc.so.6:strcpy) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--23779-- REDIR: 0x4978ad0 (libc.so.6:memcpy@@GLIBC_2.14) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--23779-- REDIR: 0x49960d0 (libc.so.6:wcsnlen) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--23779-- REDIR: 0x49949e0 (libc.so.6:wcscpy) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--23779-- REDIR: 0x49779a0 (libc.so.6:strpbrk) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--23779-- REDIR: 0x4977280 (libc.so.6:index) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--23779-- REDIR: 0x49777b0 (libc.so.6:strlen) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--23779-- REDIR: 0x4980d20 (libc.so.6:memrchr) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--23779-- REDIR: 0x49789d0 (libc.so.6:strcasecmp_l) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--23779-- REDIR: 0x4978550 (libc.so.6:memchr) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--23779-- REDIR: 0x4994ab0 (libc.so.6:wcslen) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--23779-- REDIR: 0x4977c60 (libc.so.6:strspn) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--23779-- REDIR: 0x49788d0 (libc.so.6:stpncpy) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--23779-- REDIR: 0x4978870 (libc.so.6:stpcpy) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--23779-- REDIR: 0x4979e10 (libc.so.6:strchrnul) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--23779-- REDIR: 0x4978a20 (libc.so.6:strncasecmp_l) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--23779-- REDIR: 0x4a058e0 (libc.so.6:__memcpy_chk) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--23779-- REDIR: 0x4978470 (libc.so.6:strstr) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--23779-- REDIR: 0x4977830 (libc.so.6:strncat) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--23779-- REDIR: 0x4989a30 (libc.so.6:__strrchr_sse2) redirected to 0x4842110 (__strrchr_sse2)
--23779-- REDIR: 0x4994070 (libc.so.6:__memset_sse2_unaligned) redirected to 0x4846270 (memset)
--23779-- REDIR: 0x4972260 (libc.so.6:malloc) redirected to 0x483c7dd (malloc)
--23779-- REDIR: 0x4973c90 (libc.so.6:calloc) redirected to 0x484139e (calloc)
--23779-- REDIR: 0x4989d30 (libc.so.6:__strlen_sse2) redirected to 0x4842620 (__strlen_sse2)
--23779-- REDIR: 0x4a56c50 (libc.so.6:__strncmp_sse42) redirected to 0x4842de0 (__strncmp_sse42)
--23779-- REDIR: 0x4993c40 (libc.so.6:memcpy@GLIBC_2.2.5) redirected to 0x4843800 (memcpy@GLIBC_2.2.5)
--23779-- REDIR: 0x4972850 (libc.so.6:free) redirected to 0x483f036 (free)
--23779-- REDIR: 0x4989820 (libc.so.6:__strchrnul_sse2) redirected to 0x4846e40 (strchrnul)
--23779-- REDIR: 0x4a05c90 (libc.so.6:__strcpy_chk) redirected to 0x4846eb0 (__strcpy_chk)
--23779-- REDIR: 0x4978120 (libc.so.6:__GI_strstr) redirected to 0x48475d0 (__strstr_sse2)
--23779-- REDIR: 0x4a654e0 (libc.so.6:__memcmp_sse4_1) redirected to 0x4845a80 (__memcmp_sse4_1)
--23779-- REDIR: 0x4973000 (libc.so.6:realloc) redirected to 0x48415eb (realloc)
--23779-- REDIR: 0x498f2a0 (libc.so.6:__strncpy_sse2_unaligned) redirected to 0x4842b90 (__strncpy_sse2_unaligned)
--23779-- REDIR: 0x4993560 (libc.so.6:__strstr_sse2_unaligned) redirected to 0x4847530 (strstr)
--23779-- REDIR: 0x49895f0 (libc.so.6:__strchr_sse2) redirected to 0x4842230 (__strchr_sse2)
--23779-- REDIR: 0x4993c20 (libc.so.6:__mempcpy_sse2_unaligned) redirected to 0x4846f50 (mempcpy)
--23779-- REDIR: 0x4984030 (libc.so.6:__memchr_sse2) redirected to 0x4843750 (memchr)
--23779-- REDIR: 0x4982520 (libc.so.6:__strcmp_sse2_unaligned) redirected to 0x48435d0 (strcmp)
--23779-- REDIR: 0x498ec70 (libc.so.6:__strcpy_sse2_unaligned) redirected to 0x4842710 (strcpy)
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libXxf86vm.so.1.0.0
--23779-- object doesn't have a symbol table
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libXext.so.6.4.0
--23779-- Considering /usr/lib/x86_64-linux-gnu/libXext.so.6.4.0 ..
--23779-- .. CRC mismatch (computed 7e27e1ef wanted 4ab025b2)
--23779-- Considering /lib/x86_64-linux-gnu/libXext.so.6.4.0 ..
--23779-- .. CRC mismatch (computed 7e27e1ef wanted 4ab025b2)
--23779-- object doesn't have a symbol table
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libXi.so.6.1.0
--23779-- object doesn't have a symbol table
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libXrandr.so.2.2.0
--23779-- object doesn't have a symbol table
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libXrender.so.1.3.0
--23779-- object doesn't have a symbol table
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libXcursor.so.1.0.2
--23779-- object doesn't have a symbol table
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libXfixes.so.3.1.0
--23779-- object doesn't have a symbol table
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libXinerama.so.1.0.0
--23779-- object doesn't have a symbol table
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libX11-xcb.so.1.0.0
--23779-- object doesn't have a symbol table
--23779-- REDIR: 0x49902b0 (libc.so.6:__stpcpy_sse2_unaligned) redirected to 0x4845e70 (__stpcpy_sse2_unaligned)
--23779-- REDIR: 0x4a5b7b0 (libc.so.6:__strcspn_sse42) redirected to 0x4847780 (strcspn)
--23779-- REDIR: 0x4993c30 (libc.so.6:__memcpy_chk_sse2_unaligned) redirected to 0x4847420 (__memcpy_chk)
--23779-- REDIR: 0x4a5ba30 (libc.so.6:__strspn_sse42) redirected to 0x4847880 (strspn)
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libGL.so.1.7.0
--23779-- object doesn't have a symbol table
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libGLdispatch.so.0.0.0
--23779-- object doesn't have a symbol table
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libGLX.so.0.0.0
--23779-- object doesn't have a symbol table
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libGLX_mesa.so.0.0.0
--23779-- object doesn't have a symbol table
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libglapi.so.0.0.0
--23779-- object doesn't have a symbol table
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libdrm.so.2.4.0
--23779-- object doesn't have a symbol table
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libxcb-glx.so.0.0.0
--23779-- object doesn't have a symbol table
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libxcb-dri2.so.0.0.0
--23779-- object doesn't have a symbol table
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libXdamage.so.1.1.0
--23779-- object doesn't have a symbol table
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libexpat.so.1.6.11
--23779-- object doesn't have a symbol table
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libxcb-dri3.so.0.0.0
--23779-- object doesn't have a symbol table
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libxcb-present.so.0.0.0
--23779-- object doesn't have a symbol table
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libxcb-sync.so.1.0.0
--23779-- object doesn't have a symbol table
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libxshmfence.so.1.0.0
--23779-- object doesn't have a symbol table
--23779-- REDIR: 0x4989ed0 (libc.so.6:__strnlen_sse2) redirected to 0x4842560 (strnlen)
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so
--23779-- object doesn't have a symbol table
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libLLVM-10.so.1
--23779-- object doesn't have a symbol table
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libz.so.1.2.11
--23779-- object doesn't have a symbol table
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libzstd.so.1.4.4
--23779-- object doesn't have a symbol table
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libsensors.so.5.0.0
--23779-- object doesn't have a symbol table
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libdrm_radeon.so.1.0.1
--23779-- object doesn't have a symbol table
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libelf-0.176.so
--23779-- object doesn't have a symbol table
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libdrm_amdgpu.so.1.0.0
--23779-- object doesn't have a symbol table
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libdrm_nouveau.so.2.0.0
--23779-- object doesn't have a symbol table
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libvulkan.so.1.2.131
--23779-- object doesn't have a symbol table
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.28
--23779-- object doesn't have a symbol table
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libgcc_s.so.1
--23779-- object doesn't have a symbol table
--23779-- REDIR: 0x40209b0 (ld-linux-x86-64.so.2:strncmp) redirected to 0x4842ec0 (strncmp)
--23779-- REDIR: 0x4023140 (ld-linux-x86-64.so.2:stpcpy) redirected to 0x4845ff0 (stpcpy)
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libffi.so.7.1.0
--23779-- object doesn't have a symbol table
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libedit.so.2.0.63
--23779-- object doesn't have a symbol table
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/librt-2.31.so
--23779-- Considering /usr/lib/x86_64-linux-gnu/librt-2.31.so ..
--23779-- .. CRC mismatch (computed 6a819213 wanted 953fa4ef)
--23779-- Considering /lib/x86_64-linux-gnu/librt-2.31.so ..
--23779-- .. CRC mismatch (computed 6a819213 wanted 953fa4ef)
--23779-- Considering /usr/lib/debug/lib/x86_64-linux-gnu/librt-2.31.so ..
--23779-- .. CRC is valid
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libtinfo.so.6.2
--23779-- object doesn't have a symbol table
--23779-- REDIR: 0x4994b50 (libc.so.6:wcsncmp) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--23779-- REDIR: 0xbc0ab20 (libstdc++.so.6:operator new(unsigned long)) redirected to 0x483cf67 (operator new(unsigned long))
--23779-- REDIR: 0xbc08d70 (libstdc++.so.6:operator delete(void*)) redirected to 0x483f5bb (operator delete(void*))
--23779-- REDIR: 0xbc0ab60 (libstdc++.so.6:operator new(unsigned long, std::nothrow_t const&)) redirected to 0x483d7a5 (operator new(unsigned long, std::nothrow_t const&))
--23779-- REDIR: 0x4984360 (libc.so.6:__rawmemchr_sse2) redirected to 0x4846e70 (rawmemchr)
--23779-- REDIR: 0x49749b0 (libc.so.6:posix_memalign) redirected to 0x48418b0 (posix_memalign)
--23779-- REDIR: 0xbc08d80 (libstdc++.so.6:operator delete(void*, unsigned long)) redirected to 0x483f82f (operator delete(void*, unsigned long))
--23779-- REDIR: 0xbc0ab80 (libstdc++.so.6:operator new[](unsigned long)) redirected to 0x483e191 (operator new[](unsigned long))
--23779-- REDIR: 0xbc08da0 (libstdc++.so.6:operator delete[](void*)) redirected to 0x48405ad (operator delete[](void*))
--23779-- REDIR: 0x4a57c30 (libc.so.6:__strcasecmp_sse42) redirected to 0x4842f30 (strcasecmp)
--23779-- memcheck GC: 1000 nodes, 119 survivors (11.9%)
--23779-- memcheck GC: 1000 nodes, 119 survivors (11.9%)
--23779-- memcheck GC: 1000 nodes, 119 survivors (11.9%)
--23779-- memcheck GC: 1000 nodes, 126 survivors (12.6%)
--23779-- memcheck GC: 1000 nodes, 129 survivors (12.9%)
--23779-- memcheck GC: 1000 nodes, 346 survivors (34.6%)
--23779-- memcheck GC: 1014 new table size (driftup)
--23779-- memcheck GC: 1014 nodes, 411 survivors (40.5%)
--23779-- memcheck GC: 1029 new table size (driftup)
--23779-- memcheck GC: 1029 nodes, 663 survivors (64.4%)
--23779-- memcheck GC: 1455 new table size (stepup)
==23779== Conditional jump or move depends on uninitialised value(s)
==23779== at 0x803A343: ??? (in /usr/lib/x86_64-linux-gnu/libLLVM-10.so.1)
==23779== by 0x7F7A5E7: llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (in /usr/lib/x86_64-linux-gnu/libLLVM-10.so.1)
==23779== by 0x7DE4D75: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /usr/lib/x86_64-linux-gnu/libLLVM-10.so.1)
==23779== by 0x7DE4FF2: llvm::FPPassManager::runOnModule(llvm::Module&) (in /usr/lib/x86_64-linux-gnu/libLLVM-10.so.1)
==23779== by 0x7DE549F: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /usr/lib/x86_64-linux-gnu/libLLVM-10.so.1)
==23779== by 0x8F30B34: llvm::MCJIT::emitObject(llvm::Module*) (in /usr/lib/x86_64-linux-gnu/libLLVM-10.so.1)
==23779== by 0x8F30F1D: llvm::MCJIT::generateCodeForModule(llvm::Module*) (in /usr/lib/x86_64-linux-gnu/libLLVM-10.so.1)
==23779== by 0x8F316AD: llvm::MCJIT::finalizeObject() (in /usr/lib/x86_64-linux-gnu/libLLVM-10.so.1)
==23779== by 0x8EF587F: LLVMGetPointerToGlobal (in /usr/lib/x86_64-linux-gnu/libLLVM-10.so.1)
==23779== by 0x6409041: ??? (in /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so)
==23779== by 0x63FD9EF: ??? (in /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so)
==23779== by 0x63E9937: ??? (in /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so)
==23779== Uninitialised value was created by a stack allocation
==23779== at 0x8038D3A: ??? (in /usr/lib/x86_64-linux-gnu/libLLVM-10.so.1)
==23779==
--23779-- memcheck GC: 1455 nodes, 392 survivors (26.9%)
--23779-- memcheck GC: 1476 new table size (driftup)
--23779-- memcheck GC: 1476 nodes, 1386 survivors (93.9%)
--23779-- memcheck GC: 2087 new table size (stepup)
--23779-- memcheck GC: 2087 nodes, 297 survivors (14.2%)
--23779-- memcheck GC: 2087 nodes, 298 survivors (14.3%)
--23779-- Discarding syms at 0x5dd5ff0-0x6b18ab2 in /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so (have_dinfo 1)
--23779-- Discarding syms at 0xba12240-0xbaa3d0a in /usr/lib/x86_64-linux-gnu/libzstd.so.1.4.4 (have_dinfo 1)
--23779-- Discarding syms at 0xbaba580-0xbac0f68 in /usr/lib/x86_64-linux-gnu/libsensors.so.5.0.0 (have_dinfo 1)
--23779-- Discarding syms at 0xbaca2a0-0xbad0b5d in /usr/lib/x86_64-linux-gnu/libdrm_radeon.so.1.0.1 (have_dinfo 1)
--23779-- Discarding syms at 0xbada580-0xbaeb105 in /usr/lib/x86_64-linux-gnu/libelf-0.176.so (have_dinfo 1)
--23779-- Discarding syms at 0xbaf6740-0xbafaf01 in /usr/lib/x86_64-linux-gnu/libdrm_amdgpu.so.1.0.0 (have_dinfo 1)
--23779-- Discarding syms at 0xbb013c0-0xbb051ae in /usr/lib/x86_64-linux-gnu/libdrm_nouveau.so.2.0.0 (have_dinfo 1)
--23779-- Discarding syms at 0xbb196c0-0xbb4af16 in /usr/lib/x86_64-linux-gnu/libvulkan.so.1.2.131 (have_dinfo 1)
--23779-- Discarding syms at 0x5417660-0x541c288 in /usr/lib/x86_64-linux-gnu/libXcursor.so.1.0.2 (have_dinfo 1)
--23779-- Discarding syms at 0x51ff360-0x52056b9 in /usr/lib/x86_64-linux-gnu/libXrandr.so.2.2.0 (have_dinfo 1)
--23779-- Discarding syms at 0x542a0f0-0x542aa31 in /usr/lib/x86_64-linux-gnu/libXinerama.so.1.0.0 (have_dinfo 1)
--23779-- Discarding syms at 0x520ba60-0x5211ab5 in /usr/lib/x86_64-linux-gnu/libXrender.so.1.3.0 (have_dinfo 1)
--23779-- Discarding syms at 0x51ed460-0x51f7d1b in /usr/lib/x86_64-linux-gnu/libXi.so.6.1.0 (have_dinfo 1)
--23779-- Discarding syms at 0x58761c0-0x587901d in /usr/lib/x86_64-linux-gnu/libGL.so.1.7.0 (have_dinfo 1)
--23779-- Discarding syms at 0x5976700-0x599048c in /usr/lib/x86_64-linux-gnu/libGLX.so.0.0.0 (have_dinfo 1)
--23779-- Discarding syms at 0x58fb240-0x58fd4eb in /usr/lib/x86_64-linux-gnu/libGLdispatch.so.0.0.0 (have_dinfo 1)
--23779-- Discarding syms at 0x59c1d60-0x5a04a42 in /usr/lib/x86_64-linux-gnu/libGLX_mesa.so.0.0.0 (have_dinfo 1)
--23779-- Discarding syms at 0x542f040-0x542f11f in /usr/lib/x86_64-linux-gnu/libX11-xcb.so.1.0.0 (have_dinfo 1)
--23779-- Discarding syms at 0x5423300-0x54256ea in /usr/lib/x86_64-linux-gnu/libXfixes.so.3.1.0 (have_dinfo 1)
--23779-- Discarding syms at 0x51d0240-0x51d29f9 in /usr/lib/x86_64-linux-gnu/libXxf86vm.so.1.0.0 (have_dinfo 1)
--23779-- Discarding syms at 0x51da5e0-0x51e484e in /usr/lib/x86_64-linux-gnu/libXext.so.6.4.0 (have_dinfo 1)
--23779-- Discarding syms at 0x5a2f1a0-0x5a3c410 in /usr/lib/x86_64-linux-gnu/libglapi.so.0.0.0 (have_dinfo 1)
--23779-- Discarding syms at 0x5a61780-0x5a6b489 in /usr/lib/x86_64-linux-gnu/libdrm.so.2.4.0 (have_dinfo 1)
--23779-- Discarding syms at 0x5a7d0a0-0x5a85b29 in /usr/lib/x86_64-linux-gnu/libxcb-glx.so.0.0.0 (have_dinfo 1)
--23779-- Discarding syms at 0x5a910a0-0x5a92309 in /usr/lib/x86_64-linux-gnu/libxcb-dri2.so.0.0.0 (have_dinfo 1)
--23779-- Discarding syms at 0x5a971a0-0x5a97b1b in /usr/lib/x86_64-linux-gnu/libXdamage.so.1.1.0 (have_dinfo 1)
--23779-- Discarding syms at 0x5a9f230-0x5abab07 in /usr/lib/x86_64-linux-gnu/libexpat.so.1.6.11 (have_dinfo 1)
--23779-- Discarding syms at 0x5acb0e0-0x5acbfd7 in /usr/lib/x86_64-linux-gnu/libxcb-dri3.so.0.0.0 (have_dinfo 1)
--23779-- Discarding syms at 0x5ad00a0-0x5ad097a in /usr/lib/x86_64-linux-gnu/libxcb-present.so.0.0.0 (have_dinfo 1)
--23779-- Discarding syms at 0x5ad7100-0x5ad9416 in /usr/lib/x86_64-linux-gnu/libxcb-sync.so.1.0.0 (have_dinfo 1)
--23779-- Discarding syms at 0x5ade960-0x5adec2c in /usr/lib/x86_64-linux-gnu/libxshmfence.so.1.0.0 (have_dinfo 1)
==23779==
==23779== HEAP SUMMARY:
==23779== in use at exit: 298,622 bytes in 2,554 blocks
==23779== total heap usage: 166,353 allocs, 163,799 frees, 76,537,183 bytes allocated
==23779==
==23779== Searching for pointers to 2,554 not-freed blocks
==23779== Checked 12,997,488 bytes
==23779==
==23779== 112 (56 direct, 56 indirect) bytes in 1 blocks are definitely lost in loss record 1,887 of 1,927
==23779== at 0x4841428: calloc (vg_replace_malloc.c:1340)
==23779== by 0x676607E: ???
==23779== by 0x63E1C3B: ???
==23779== by 0x63CC7A5: ???
==23779== by 0x63CC86C: ???
==23779== by 0x63CD479: ???
==23779== by 0x6390A33: ???
==23779== by 0x639335C: ???
==23779== by 0x638E2BC: ???
==23779== by 0x6351357: ???
==23779== by 0x637533D: ???
==23779== by 0x6372C76: ???
==23779==
==23779== 5,294 bytes in 255 blocks are definitely lost in loss record 1,922 of 1,927
==23779== at 0x483C853: malloc (vg_replace_malloc.c:393)
==23779== by 0x497750E: strdup (strdup.c:42)
==23779== by 0x5A3C0D6: ???
==23779== by 0x5A3BE84: ???
==23779== by 0x59DDE16: ???
==23779== by 0x58FB436: ???
==23779== by 0x58FBE1C: ???
==23779== by 0x5977419: ???
==23779== by 0x5978C57: ???
==23779== by 0x4880A06: ??? (in /usr/lib/x86_64-linux-gnu/libglfw.so.3.3)
==23779== by 0x486FDEB: ??? (in /usr/lib/x86_64-linux-gnu/libglfw.so.3.3)
==23779== by 0x48756AA: glfwCreateWindow (in /usr/lib/x86_64-linux-gnu/libglfw.so.3.3)
==23779==
==23779== LEAK SUMMARY:
==23779== definitely lost: 5,350 bytes in 256 blocks
==23779== indirectly lost: 56 bytes in 1 blocks
==23779== possibly lost: 0 bytes in 0 blocks
==23779== still reachable: 293,172 bytes in 2,295 blocks
==23779== suppressed: 44 bytes in 2 blocks
==23779== Reachable blocks (those to which a pointer was found) are not shown.
==23779== To see them, rerun with: --leak-check=full --show-leak-kinds=all
==23779==
==23779== ERROR SUMMARY: 185 errors from 3 contexts (suppressed: 0 from 0)
==23779==
==23779== 183 errors in context 1 of 3:
==23779== Conditional jump or move depends on uninitialised value(s)
==23779== at 0x803A343: ??? (in /usr/lib/x86_64-linux-gnu/libLLVM-10.so.1)
==23779== by 0x7F7A5E7: llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (in /usr/lib/x86_64-linux-gnu/libLLVM-10.so.1)
==23779== by 0x7DE4D75: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /usr/lib/x86_64-linux-gnu/libLLVM-10.so.1)
==23779== by 0x7DE4FF2: llvm::FPPassManager::runOnModule(llvm::Module&) (in /usr/lib/x86_64-linux-gnu/libLLVM-10.so.1)
==23779== by 0x7DE549F: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /usr/lib/x86_64-linux-gnu/libLLVM-10.so.1)
==23779== by 0x8F30B34: llvm::MCJIT::emitObject(llvm::Module*) (in /usr/lib/x86_64-linux-gnu/libLLVM-10.so.1)
==23779== by 0x8F30F1D: llvm::MCJIT::generateCodeForModule(llvm::Module*) (in /usr/lib/x86_64-linux-gnu/libLLVM-10.so.1)
==23779== by 0x8F316AD: llvm::MCJIT::finalizeObject() (in /usr/lib/x86_64-linux-gnu/libLLVM-10.so.1)
==23779== by 0x8EF587F: LLVMGetPointerToGlobal (in /usr/lib/x86_64-linux-gnu/libLLVM-10.so.1)
==23779== by 0x6409041: ???
==23779== by 0x63FD9EF: ???
==23779== by 0x63E9937: ???
==23779== Uninitialised value was created by a stack allocation
==23779== at 0x8038D3A: ??? (in /usr/lib/x86_64-linux-gnu/libLLVM-10.so.1)
==23779==
--23779--
--23779-- used_suppression: 2 dtv-addr-init /usr/local/libexec/valgrind/default.supp:1476 suppressed: 44 bytes in 2 blocks
==23779==
==23779== ERROR SUMMARY: 185 errors from 3 contexts (suppressed: 0 from 0)