shithub: choc

Download patch

ref: 54500659f97ba431de173129726211b65d84e4ad
parent: dac0cda28d9dfb1e3f46b29e6f501f7259c98eda
parent: 8442508444cb660b5e83b888d153985f78dc0954
author: Fabian Greffrath <fabian@greffrath.com>
date: Thu Nov 8 15:46:53 EST 2018

Merge pull request #1103 from mfrancis95/master

Fix memory leak related to Steam directories

--- a/src/d_iwad.c
+++ b/src/d_iwad.c
@@ -674,6 +674,7 @@
     AddIWADPath(steampath, "/Hexen/base");
     AddIWADPath(steampath, "/Hexen Deathkings of the Dark Citadel/base");
     AddIWADPath(steampath, "/Strife");
+    free(steampath);
 }
 #endif // __MACOSX__
 #endif // !_WIN32