Salome HOME
projects
/
modules
/
yacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e09fac7
)
Fix bug causing Python to deallocate None
author
Renaud Barate
<renaud.barate@edf.fr>
Tue, 7 Apr 2015 14:31:02 +0000
(16:31 +0200)
committer
Renaud Barate
<renaud.barate@edf.fr>
Tue, 7 Apr 2015 14:31:02 +0000
(16:31 +0200)
This bug could happen on schemas with very large numbers of Python nodes
src/runtime/PythonPorts.cxx
patch
|
blob
|
history
diff --git
a/src/runtime/PythonPorts.cxx
b/src/runtime/PythonPorts.cxx
index 9e7f817e791913be91526b3dfb747f2df0c373bc..4d25d1f09b534c27e40c2f8fe1ca664ef024024c 100644
(file)
--- a/
src/runtime/PythonPorts.cxx
+++ b/
src/runtime/PythonPorts.cxx
@@
-283,6
+283,7
@@
OutputPyPort::~OutputPyPort()
OutputPyPort::OutputPyPort(const OutputPyPort& other, Node *newHelder):OutputPort(other,newHelder),DataPort(other,newHelder),Port(other,newHelder),
_data(Py_None)
{
+ Py_INCREF(_data);
}
void OutputPyPort::put(const void *data) throw(ConversionException)