1
0
mirror of https://github.com/PDP-10/klh10.git synced 2026-03-08 03:39:35 +00:00

Merge pull request #38 from Rhialto/more-cleanup-34

Clear file pointer when file is closed.
This commit is contained in:
Rhialto The M
2018-09-08 16:13:03 +02:00
committed by GitHub

View File

@@ -871,6 +871,7 @@ vmt_rdmount(register struct vmtape *t,
}
/* Oops, doesn't look like a control file. Try data. */
fclose(cf);
cf = NULL;
if (cfn != ta->vmta_path)
free(cfn);
cfn = NULL;