mirror of
https://github.com/open-simh/simh.git
synced 2026-05-01 05:58:54 +00:00
Intel-Systems: plug file descriptor leaks (Coverity Scan)
This commit is contained in:
committed by
Mark Pizzolato
parent
c6ed19aec3
commit
12bd47eb02
@@ -401,6 +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);
|
||||
return SCPE_MEM;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user