shithub: choc

Download patch

ref: c0c1771e37eb41eed0f0b2e9174ef72c2ec776f4
parent: fbb2fa82c536671ce3d6518dabc8a5f6601dc612
parent: 255b76c3383bfd8b34237d67bb1a8bebed883e09
author: Simon Howard <fraggle+github@gmail.com>
date: Wed Nov 21 08:24:00 EST 2018

Merge pull request #1108 from mfrancis95/master

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)