Index: /issm/trunk-jpl/src/c/toolkits/issm/IssmMpiVec.h
===================================================================
--- /issm/trunk-jpl/src/c/toolkits/issm/IssmMpiVec.h	(revision 20039)
+++ /issm/trunk-jpl/src/c/toolkits/issm/IssmMpiVec.h	(revision 20040)
@@ -250,6 +250,6 @@
 
 			for(i=0;i<num_procs;i++){
-				DataSet* buckets=bucketsforcpu[i];
-				delete buckets;
+				DataSet* bucketsn=bucketsforcpu[i];
+				delete bucketsn;
 			}
 			xDelete<DataSet*>(bucketsforcpu);
@@ -271,4 +271,8 @@
 			xDelete<int>(sendcnts);
 			xDelete<int>(displs);
+			
+			/*Get rid of all buckets, as we have already added them to the matrix!: */
+			delete this->buckets;
+			this->buckets=new DataSet();
 			/*}}}*/
 
