free more data allocated during INIT

This commit is contained in:
Holger Vogt 2018-08-11 11:37:19 +02:00
parent c891c2f64f
commit d8352342a8
2 changed files with 5 additions and 0 deletions

View File

@ -303,6 +303,8 @@ cm_table2D_callback(ARGS, Mif_Callback_Reason_t reason)
for (i = 0; i < loc->iy; i++)
free(loc->table[i]);
free(loc->table);
free(loc->xcol);
free(loc->ycol);
sf_eno2_close (loc->newtable);
free(loc);
break;

View File

@ -313,6 +313,9 @@ cm_table3D_callback(ARGS, Mif_Callback_Reason_t reason)
free(loc->table[i]);
}
free(loc->table);
free(loc->xcol);
free(loc->ycol);
free(loc->zcol);
sf_eno3_close (loc->newtable);
free(loc);
break;