]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Additional change to previous commit to avoid memory corruption
authorvsr <vsr@opencascade.com>
Tue, 1 Dec 2015 14:36:05 +0000 (17:36 +0300)
committervsr <vsr@opencascade.com>
Tue, 1 Dec 2015 14:36:05 +0000 (17:36 +0300)
src/GEOMImpl/GEOMImpl_ICurvesOperations.cxx

index 8e3dab46bbd06930aa92c1e08c1b369bba0b86a8..229024df4028641243ba7f0ce07506c67a920db4 100644 (file)
@@ -1026,6 +1026,7 @@ Handle(GEOM_Object) GEOMImpl_ICurvesOperations::MakeCurveParametric
     std::string err_description="";
     PyObject* new_stderr = newPyStdOut(err_description);
     PyObject* old_stderr = PySys_GetObject((char*)"stderr");
+    Py_INCREF(old_stderr);
     PySys_SetObject((char*)"stderr", new_stderr);
     PyErr_Print();
     PySys_SetObject((char*)"stderr", old_stderr);