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

Clear file pointer when file is closed.

This commit is contained in:
Olaf Seibert
2018-09-07 18:44:32 +02:00
parent dc4751bc6f
commit c8bdff6d49

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;