SCP: Fix remaining memory leak in RESTORE (COVERITY)

This commit is contained in:
Mark Pizzolato 2017-03-13 17:56:18 -07:00
parent 950fc82e38
commit 18efafe927

2
scp.c
View file

@ -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);