From 538a6698d87548321328d61e02164d48799e7a2a Mon Sep 17 00:00:00 2001 From: Joseph Ferano Date: Sun, 19 Jul 2026 13:57:54 +0700 Subject: [PATCH] Suppress lsan glfw leak --- .gitignore | 1 + Makefile | 2 +- lsan.supp | 3 +++ 3 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 lsan.supp diff --git a/.gitignore b/.gitignore index 02bf6d2..189881e 100644 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,4 @@ /writeimage *.fasl *.so +/.emacs.desktop* diff --git a/Makefile b/Makefile index 66dacc0..6ecea81 100644 --- a/Makefile +++ b/Makefile @@ -16,7 +16,7 @@ game.so: game.cpp game.h lib.h sprites.h game_data.h Makefile mv game.so.tmp game.so run: all - LD_LIBRARY_PATH=lib ./main + LSAN_OPTIONS=suppressions=./lsan.supp LD_LIBRARY_PATH=lib ./main clean: rm -vf *.so *.o main diff --git a/lsan.supp b/lsan.supp new file mode 100644 index 0000000..fd27f4e --- /dev/null +++ b/lsan.supp @@ -0,0 +1,3 @@ +# One-time GLFW/X11/GL driver init allocations reached via InitWindow. +# Never freed by design; not owned by this codebase. +leak:_glfwCreateWindowX11