aboutsummaryrefslogtreecommitdiffstats
path: root/wsutil
diff options
context:
space:
mode:
authorJoão Valverde <j@v6e.pt>2023-02-06 16:13:32 +0000
committerJoão Valverde <j@v6e.pt>2023-02-06 19:39:33 +0000
commit66bd99f1a837473bf250ed48e127516c2d838f44 (patch)
tree7bc5d8397b9a043e7ce12393b5051f4de889eb42 /wsutil
parentd9353d1684a6aaff804e484c4e833e3c8ed1055d (diff)
wsutil/filesystem: Fix potential memory leak
We now use the 'install_prefix' variable on multiple platforms, not just MSYS2.
Diffstat (limited to 'wsutil')
-rw-r--r--wsutil/filesystem.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/wsutil/filesystem.c b/wsutil/filesystem.c
index 72244749b8..79052de219 100644
--- a/wsutil/filesystem.c
+++ b/wsutil/filesystem.c
@@ -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;