Index: /issm/trunk-jpl/src/c/shared/Alloc/alloc.cpp
===================================================================
--- /issm/trunk-jpl/src/c/shared/Alloc/alloc.cpp	(revision 11693)
+++ /issm/trunk-jpl/src/c/shared/Alloc/alloc.cpp	(revision 11694)
@@ -88,4 +88,8 @@
 		 * free in parallel: */
 		delete *pv;
+		#else
+		/*Actually, still get rid of internal Petsc matrix. Quick fix until Matlab handles C++ 
+		 * correctly: */
+		MatFree(&(*pv)->matrix);
 		#endif
 		*pv=NULL;
@@ -101,4 +105,8 @@
 		 * free in parallel: */
 		delete *pv;
+		#else
+		/*Actually, still get rid of internal Petsc vector. Quick fix until Matlab handles C++ 
+		 * correctly: */
+		VecFree(&(*pv)->vector);
 		#endif
 		*pv=NULL;
