Skip to content

Commit

Permalink
Memory leak no more!
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed May 23, 2024
1 parent 156ca35 commit 6e081eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stdlib/SDL_getenv.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6e081eb

Please sign in to comment.