mirror of
https://github.com/PDP-10/klh10.git
synced 2026-02-08 09:11:59 +00:00
Add missing fclose after tape format detection.
Without this, doing something like: devmount mta0 /tmp/foo devunmount mta0 (i.e. without specifying fmt=bar to the devmount) will leak a FILE * and file descriptor.
This commit is contained in:
@@ -886,6 +886,8 @@ vmt_rdmount(register struct vmtape *t,
|
||||
return FALSE;
|
||||
}
|
||||
dfn = ta->vmta_path;
|
||||
fclose(df);
|
||||
df = NULL;
|
||||
}
|
||||
havefmt:
|
||||
if (vmtfmttab[fmt].tf_flags & (VMTFF_CTL | VMTFF_XCTL)) {
|
||||
|
||||
Reference in New Issue
Block a user