mirror of
https://github.com/open-simh/simh.git
synced 2026-01-20 10:04:28 +00:00
Fix handle leak if a memory allocation error occurred during a VHD create with Copy
This commit is contained in:
parent
38c1e1ec2b
commit
ba2070f1f6
@ -892,6 +892,7 @@ if (sim_switches & SWMASK ('C')) { /* create vhd disk & cop
|
||||
t_seccnt sects = sectors_per_buffer;
|
||||
|
||||
if (!copy_buf) {
|
||||
sim_vhd_disk_close(vhd);
|
||||
remove (gbuf);
|
||||
return SCPE_MEM;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user