foxygit / doom Log in
commit 7f9e8f65a28e8fd4e196e6ce35cf1d4b29aefff1
Author:     Turo Lamminen <turotl@gmail.com>
AuthorDate: Sat Jul 21 16:30:25 2018 +0300
Commit:     Turo Lamminen <turotl@gmail.com>
CommitDate: Sat Jul 21 16:56:35 2018 +0300

    deh: Free result of D_TryFindWADByName in DEH_ParseCommandLine
---
 src/deh_main.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/deh_main.c b/src/deh_main.c
index 654bc2de..a4d80608 100644
--- a/src/deh_main.c
+++ b/src/deh_main.c
@@ -483,6 +483,7 @@ void DEH_ParseCommandLine(void)
         {
             filename = D_TryFindWADByName(myargv[p]);
             DEH_LoadFile(filename);
+            free(filename);
             ++p;
         }
     }