shithub: choc

Download patch

ref: a8e8763cba49db50e4a9dc7198c6e4b6dcfbcbfe
parent: 68d11b6ff1cb15cdf80d29443d2c3e15da434fa3
parent: d358269bb491b69b82dc6f6e986c8f56b8c1eb3e
author: Mike Swanson <[email protected]>
date: Mon Jan 27 07:13:18 EST 2020

Merge pull request #1245 from chocolate-doom/mfrancis95-patch-1

Fix memory leak when iwad not found (fix #1241)

--- a/src/d_iwad.c
+++ b/src/d_iwad.c
@@ -787,6 +787,7 @@
         {
             return probe;
         }
+        free(probe);
 
         // Construct a string for the full path