SCP: Fix remaining memory leak in RESTORE (COVERITY)
This commit is contained in:
parent
950fc82e38
commit
18efafe927
1 changed files with 2 additions and 0 deletions
2
scp.c
2
scp.c
|
@ -6435,6 +6435,8 @@ for (j=0, r = SCPE_OK; j<attcnt; j++) {
|
|||
free (attnames[j]);
|
||||
}
|
||||
Cleanup_Return:
|
||||
for (j=0; j < attcnt; j++)
|
||||
free (attnames[j]);
|
||||
free (attnames);
|
||||
free (attunits);
|
||||
free (attswitches);
|
||||
|
|
Loading…
Add table
Reference in a new issue