mirror of
https://github.com/open-simh/simh.git
synced 2026-05-01 22:16:21 +00:00
SCP: Fix remaining memory leak in RESTORE (COVERITY)
This commit is contained in:
2
scp.c
2
scp.c
@@ -6435,6 +6435,8 @@ for (j=0, r = SCPE_OK; j<attcnt; j++) {
|
|||||||
free (attnames[j]);
|
free (attnames[j]);
|
||||||
}
|
}
|
||||||
Cleanup_Return:
|
Cleanup_Return:
|
||||||
|
for (j=0; j < attcnt; j++)
|
||||||
|
free (attnames[j]);
|
||||||
free (attnames);
|
free (attnames);
|
||||||
free (attunits);
|
free (attunits);
|
||||||
free (attswitches);
|
free (attswitches);
|
||||||
|
|||||||
Reference in New Issue
Block a user