SCP: Avoid potential double freeing of memory during RESTORE operations
Fix problem reported in #484
This commit is contained in:
parent
2435311072
commit
247bd8d534
1 changed files with 1 additions and 0 deletions
1
scp.c
1
scp.c
|
@ -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++)
|
||||
|
|
Loading…
Add table
Reference in a new issue