shithub: choc

Download patch

ref: d358269bb491b69b82dc6f6e986c8f56b8c1eb3e
parent: 68d11b6ff1cb15cdf80d29443d2c3e15da434fa3
author: Michael Francis <mikefrancis95@gmail.com>
date: Mon Jan 27 02:57:55 EST 2020

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