mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-11-11 16:19:17 +05:00
Additional change to previous commit to avoid memory corruption
This commit is contained in:
parent
0138a9d57c
commit
6c9327744f
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user