shithub: choc

Download patch

ref: 255b76c3383bfd8b34237d67bb1a8bebed883e09
parent: fbb2fa82c536671ce3d6518dabc8a5f6601dc612
author: mfrancis95 <mikefrancis95@gmail.com>
date: Wed Nov 21 08:06:58 EST 2018

Fix tiny memory leak when looking for IWADs

--- a/src/d_iwad.c
+++ b/src/d_iwad.c
@@ -481,6 +481,7 @@
         filename = M_StringJoin(dir, DIR_SEPARATOR_S, iwadname, NULL);
     }
 
+    free(probe);
     probe = M_FileCaseExists(filename);
     free(filename);
     if (probe != NULL)