1
0
mirror of https://github.com/open-simh/simh.git synced 2026-01-14 07:40:35 +00:00

SCP: Avoid potential double freeing of memory during RESTORE operations

Fix problem reported in #484
This commit is contained in:
Mark Pizzolato 2017-10-10 17:36:36 -07:00
parent 2435311072
commit 247bd8d534

1
scp.c
View File

@ -6683,6 +6683,7 @@ for (j=0, r = SCPE_OK; j<attcnt; j++) {
}
}
free (attnames[j]);
attnames[j] = NULL;
}
Cleanup_Return:
for (j=0; j < attcnt; j++)