Index: /issm/trunk/src/c/objects/Icefront.cpp
===================================================================
--- /issm/trunk/src/c/objects/Icefront.cpp	(revision 2004)
+++ /issm/trunk/src/c/objects/Icefront.cpp	(revision 2005)
@@ -1163,4 +1163,10 @@
 		} //for(i=0;i<4;i++)
 	} //for(ig=0;ig<num_gauss;ig++)
+	
+	/*Free ressources: */
+	xfree((void**)&first_gauss_area_coord);
+	xfree((void**)&second_gauss_area_coord);
+	xfree((void**)&third_gauss_area_coord);
+	xfree((void**)&gauss_weights);
 
 	/*Delete fake tria: */
@@ -1414,4 +1420,10 @@
 		} //for(i=0;i<4;i++)
 	} //for(ig=0;ig<num_gauss;ig++)
+	
+	/*Free ressources: */
+	xfree((void**)&first_gauss_area_coord);
+	xfree((void**)&second_gauss_area_coord);
+	xfree((void**)&third_gauss_area_coord);
+	xfree((void**)&gauss_weights);
 
 	/*Delete fake tria: */
Index: /issm/trunk/src/c/objects/Penta.cpp
===================================================================
--- /issm/trunk/src/c/objects/Penta.cpp	(revision 2004)
+++ /issm/trunk/src/c/objects/Penta.cpp	(revision 2005)
@@ -963,4 +963,5 @@
 		}
 		
+		xfree((void**)&first_gauss_area_coord); xfree((void**)&second_gauss_area_coord); xfree((void**)&third_gauss_area_coord); xfree((void**)&area_gauss_weights);
 		GaussTria (&num_area_gauss, &first_gauss_area_coord, &second_gauss_area_coord, &third_gauss_area_coord, &area_gauss_weights, 2);
 
@@ -1040,4 +1041,12 @@
 	
 	cleanup_and_return: 
+	
+	/*Free ressources:*/
+	xfree((void**)&first_gauss_area_coord);
+	xfree((void**)&second_gauss_area_coord);
+	xfree((void**)&third_gauss_area_coord);
+	xfree((void**)&area_gauss_weights);
+	xfree((void**)&vert_gauss_coord);
+	xfree((void**)&vert_gauss_weights);
 
 	return;
@@ -3238,5 +3247,6 @@
 			}
 		}
-
+	
+		xfree((void**)&first_gauss_area_coord); xfree((void**)&second_gauss_area_coord); xfree((void**)&third_gauss_area_coord); xfree((void**)&area_gauss_weights);
 		GaussTria (&num_area_gauss, &first_gauss_area_coord, &second_gauss_area_coord, &third_gauss_area_coord, &area_gauss_weights, 2);
 
@@ -3289,4 +3299,12 @@
 	/*Add P_terms to global vector pg: */
 	VecSetValues(pg,numdof,doflist,(const double*)P_terms,ADD_VALUES);
+
+	/*Free ressources:*/
+	xfree((void**)&first_gauss_area_coord);
+	xfree((void**)&second_gauss_area_coord);
+	xfree((void**)&third_gauss_area_coord);
+	xfree((void**)&area_gauss_weights);
+	xfree((void**)&vert_gauss_coord);
+	xfree((void**)&vert_gauss_weights);
 
 }
