wsutil/filesystem: Fix potential memory leak

We now use the 'install_prefix' variable on multiple platforms,
not just MSYS2.
This commit is contained in:
João Valverde 2023-02-06 16:13:32 +00:00
parent d9353d1684
commit 66bd99f1a8
1 changed files with 0 additions and 2 deletions

View File

@ -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;