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++)