# Valgrind / ASAN

**URL:** <https://discourse.libsdl.org/t/valgrind-asan/58621>\
**Category:** SDL Development\
**Created:** [March 19, 2025, 12:36am UTC](https://discourse.libsdl.org/t/valgrind-asan/58621 "2025-03-19T00:36:24Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Mathias](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/m/bbe5ce/32.png) [@Mathias](https://discourse.libsdl.org/u/Mathias)\
**Post date:** [March 19, 2025, 7:18am UTC](https://discourse.libsdl.org/t/valgrind-asan/58621/3 "2025-03-19T07:18:07Z")

</div>

Could this be related to that?

> [@\[SDL 3.1.6\] Memory leeks](https://discourse.libsdl.org/t/sdl-3-1-6-memory-leeks/55851):
>
> I tested the following program, which is actually nothing special. I tested it with valgrind --leak-check=full ./main. Why am I getting so many errors? /\* Linux: gcc main.c -o main -lSDL3 Windows: x86\_64-w64-mingw32-gcc main.c -o main.exe -lSDL3 -I/usr/local/include -L/usr/local/bin \*/ #include \<SDL3/SDL.h\> int main(int argc, char\* argv[]) { SDL\_Init(SDL\_INIT\_VIDEO); SDL\_Window \*window = SDL\_CreateWindow("An SDL3 window", 640, 480, SDL\_WINDOW\_OPENGL); SDL\_Delay(3000)…

---

_[View the full topic](https://discourse.libsdl.org/t/valgrind-asan/58621)._
