From 6e081eb7dcef37f40d8d19531b59b3317b531759 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Thu, 23 May 2024 11:26:59 -0700 Subject: [PATCH] Memory leak no more! --- src/stdlib/SDL_getenv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stdlib/SDL_getenv.c b/src/stdlib/SDL_getenv.c index 866b072b95..874cc1da6f 100644 --- a/src/stdlib/SDL_getenv.c +++ b/src/stdlib/SDL_getenv.c @@ -30,7 +30,7 @@ #if (defined(SDL_PLATFORM_WIN32) || defined(SDL_PLATFORM_WINGDK)) && (!defined(HAVE_SETENV) || !defined(HAVE_GETENV)) /* Note this isn't thread-safe! */ -static char *SDL_envmem = NULL; /* Ugh, memory leak */ +static char *SDL_envmem = NULL; static size_t SDL_envmemlen = 0; void SDL_FreeEnvironmentMemory(void)