shithub: choc

Download patch

ref: 7f9e8f65a28e8fd4e196e6ce35cf1d4b29aefff1
parent: bde4ac7620e411d564c0df842d0a27c1f00db1b5
author: Turo Lamminen <turotl@gmail.com>
date: Sat Jul 21 12:30:25 EDT 2018

deh: Free result of D_TryFindWADByName in DEH_ParseCommandLine

--- a/src/deh_main.c
+++ b/src/deh_main.c
@@ -483,6 +483,7 @@
         {
             filename = D_TryFindWADByName(myargv[p]);
             DEH_LoadFile(filename);
+            free(filename);
             ++p;
         }
     }