From d8352342a84db89b6e9c89c892da91fd635b2175 Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Sat, 11 Aug 2018 11:37:19 +0200 Subject: [PATCH] free more data allocated during INIT --- src/xspice/icm/table/table2D/cfunc.mod | 2 ++ src/xspice/icm/table/table3D/cfunc.mod | 3 +++ 2 files changed, 5 insertions(+) diff --git a/src/xspice/icm/table/table2D/cfunc.mod b/src/xspice/icm/table/table2D/cfunc.mod index 1cb976a19..07ee3d8f8 100644 --- a/src/xspice/icm/table/table2D/cfunc.mod +++ b/src/xspice/icm/table/table2D/cfunc.mod @@ -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; diff --git a/src/xspice/icm/table/table3D/cfunc.mod b/src/xspice/icm/table/table3D/cfunc.mod index 017da1b28..0ba381194 100644 --- a/src/xspice/icm/table/table3D/cfunc.mod +++ b/src/xspice/icm/table/table3D/cfunc.mod @@ -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;