inp.c, plug memory leak

This commit is contained in:
h_vogt 2016-08-04 23:33:09 +02:00 committed by rlar
parent ebbcc2d982
commit 6535558f9e
1 changed files with 3 additions and 4 deletions

View File

@ -975,10 +975,9 @@ inp_dodeck(
ct->ci_inprogress = FALSE;
ct->ci_runonce = FALSE;
ct->ci_commands = end;
if (filename)
ct->ci_filename = copy(filename);
else
ct->ci_filename = NULL;
if (reuse)
tfree(ct->ci_filename);
ct->ci_filename = copy(filename);
if (!noparse) {
/*