mirror of
https://github.com/simh/simh.git
synced 2026-04-26 03:57:11 +00:00
Intel-Systems: Fix prior - plug file descriptor leaks (Coverity Scan)
This commit is contained in:
@@ -401,7 +401,7 @@ t_stat isbc202_attach (UNIT *uptr, CONST char *cptr)
|
||||
fdc202[fdcnum].fdd[fddnum].buf = (uint8 *)malloc(flen);
|
||||
if (fdc202[fdcnum].fdd[fddnum].buf == NULL) {
|
||||
sim_printf(" isbc202_attach: Malloc error\n");
|
||||
free(fp);
|
||||
fclose(fp);
|
||||
return SCPE_MEM;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user