Index: ../trunk-jpl/src/c/analyses/HydrologyDCEfficientAnalysis.cpp
===================================================================
--- ../trunk-jpl/src/c/analyses/HydrologyDCEfficientAnalysis.cpp	(revision 19094)
+++ ../trunk-jpl/src/c/analyses/HydrologyDCEfficientAnalysis.cpp	(revision 19095)
@@ -666,10 +666,7 @@
 			break;
 		default: _error_("mesh "<<EnumToStringx(domaintype)<<" not supported yet");
 	}
-
 	/*Intermediaries*/
-
-	int         eplflip_lock;
 	int         numnodes      =basalelement->GetNumberOfNodes();
 	IssmDouble* epl_thickness =xNew<IssmDouble>(numnodes);
 	IssmDouble* old_active    =xNew<IssmDouble>(numnodes);
@@ -683,8 +680,6 @@
 	Input* active_element_input=basalelement->GetInput(HydrologydcMaskEplactiveEltEnum); _assert_(active_element_input);
 	active_element_input->GetInputValue(&active_element);
 
-	basalelement->parameters->FindParam(&eplflip_lock,HydrologydcEplflipLockEnum); 
-
 	basalelement-> GetInputListOnVertices(&old_active[0],HydrologydcMaskEplactiveNodeEnum);	
 	basalelement-> GetInputListOnVertices(&epl_thickness[0],HydrologydcEplThicknessEnum);	
 	basalelement-> GetInputListOnVertices(&sedhead[0],SedimentHeadEnum);
@@ -694,9 +689,7 @@
 	/*Get minimum sediment head of the element*/
 	sedheadmin=sedhead[0];
 	for(i=1;i<numnodes;i++) if(sedhead[i]<=sedheadmin)sedheadmin=sedhead[i];
-
 	for(i=0;i<numnodes;i++){
-
 		/*If node is now closed bring its thickness back to initial*/
 		if (old_active[i]==0.){
 			epl_thickness[i]=init_thick;
Index: ../trunk-jpl/src/c/classes/FemModel.cpp
===================================================================
--- ../trunk-jpl/src/c/classes/FemModel.cpp	(revision 19094)
+++ ../trunk-jpl/src/c/classes/FemModel.cpp	(revision 19095)
@@ -1953,6 +1953,8 @@
 	serial_mask=mask->ToMPISerial();	
 	
 	xDelete<int>(eplzigzag_counter);
+	xDelete<IssmDouble>(serial_rec);
+	xDelete<IssmDouble>(old_active);
 	delete mask;
 	delete recurence;
 
