Index: /issm/trunk/src/c/objects/Elements/Penta.cpp
===================================================================
--- /issm/trunk/src/c/objects/Elements/Penta.cpp	(revision 9391)
+++ /issm/trunk/src/c/objects/Elements/Penta.cpp	(revision 9392)
@@ -4495,4 +4495,5 @@
 			_error_("response %s not supported yet",EnumToStringx(responses[resp]));
 	}
+	xfree((void**)&responses);
 }
 /*}}}*/
@@ -5259,5 +5260,5 @@
 
 	/*DatasetInputs*/
-	if (iomodel->f(WeightsEnum)) {
+	if (control_analysis && iomodel->f(WeightsEnum)) {
 
 		/*Create inputs and add to DataSetInput*/
Index: /issm/trunk/src/c/objects/Elements/Tria.cpp
===================================================================
--- /issm/trunk/src/c/objects/Elements/Tria.cpp	(revision 9391)
+++ /issm/trunk/src/c/objects/Elements/Tria.cpp	(revision 9392)
@@ -2742,4 +2742,6 @@
 			_error_("response %s not supported yet",EnumToStringx(responses[resp]));
 	}
+
+	xfree((void**)&responses);
 }
 /*}}}*/
@@ -3332,5 +3334,5 @@
 
 	/*DatasetInputs*/
-	if (control_analysis) {
+	if (control_analysis && iomodel->f(WeightsEnum)){
 
 		/*Create inputs and add to DataSetInput*/
