Index: ../trunk-jpl/src/c/cores/controlad_core.cpp
===================================================================
--- ../trunk-jpl/src/c/cores/controlad_core.cpp	(revision 18892)
+++ ../trunk-jpl/src/c/cores/controlad_core.cpp	(revision 18893)
@@ -146,6 +146,7 @@
 	xDelete<double>(G);
 	xDelete<double>(X);
 	xDelete<double>(dz);
+	xDelete<IssmDouble>(scaling_factors);
 }/*}}}*/
 void simulad(long* indic,long* n,double* X,double* pf,double* G,long izs[1],float rzs[1],void* dzs){ /*{{{*/
 
@@ -256,6 +257,7 @@
 	xDelete<IssmDouble>(XU);
 	xDelete<IssmDouble>(XL);
 	xDelete<IssmPDouble>(G2);
+	xDelete<IssmDouble>(scaling_factors);
 	
 	xDelete<char>(rootpath);
 	xDelete<char>(inputfilename);
