Skip to content

Commit

Permalink
wsutil/filesystem: Fix potential memory leak
Browse files Browse the repository at this point in the history
We now use the 'install_prefix' variable on multiple platforms,
not just MSYS2.
  • Loading branch information
randstr committed Feb 6, 2023
1 parent d9353d1 commit 66bd99f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions wsutil/filesystem.c
Original file line number Diff line number Diff line change
Expand Up @@ -2668,10 +2668,8 @@ free_progdirs(void)
progfile_dir = NULL;
g_free(doc_dir);
doc_dir = NULL;
#ifdef __MINGW64__
g_free(install_prefix);
install_prefix = NULL;
#endif
#if defined(HAVE_PLUGINS) || defined(HAVE_LUA)
g_free(plugin_dir);
plugin_dir = NULL;
Expand Down

0 comments on commit 66bd99f

Please sign in to comment.