Index: /issm/trunk-jpl/src/c/modules/KillIcebergsx/KillIcebergsx.cpp
===================================================================
--- /issm/trunk-jpl/src/c/modules/KillIcebergsx/KillIcebergsx.cpp	(revision 23995)
+++ /issm/trunk-jpl/src/c/modules/KillIcebergsx/KillIcebergsx.cpp	(revision 23996)
@@ -10,4 +10,5 @@
 
 	/*Intermediaries*/
+	IssmDouble* local_mask = NULL;
 	const int MAXVERTICES = 6;
 	bool      found1;
@@ -51,5 +52,5 @@
 
 		/*Need to place an outer loop here*/
-		IssmDouble* local_mask = NULL;
+		if(local_mask) xDelete<IssmDouble>(local_mask);
 		femmodel->GetLocalVectorWithClonesVertices(&local_mask,vec_connected_to_land);
 
@@ -114,4 +115,6 @@
 	delete vec_connected_to_land;
 
+	/*OK, now deactivate iceberg and count the number of deactivated vertices*/
+
 	/*First, create a vector full of 0 and place 1 where the ice is grounded*/
 	_error_("Not implemented yet");
