Salome HOME
projects
/
tools
/
py2cpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix memory leak.
[tools/py2cpp.git]
/
src
/
Errors.cxx
diff --git
a/src/Errors.cxx
b/src/Errors.cxx
index dfafa5c1e66b14ffb08f2cac5b900cb413088e5a..d6b0d5976cf4741518d49a533fdaa2af7b362a33 100644
(file)
--- a/
src/Errors.cxx
+++ b/
src/Errors.cxx
@@
-105,6
+105,7
@@
void ConversionCheck::addError(const std::string& expectedType, PyObject * obj)
pyRepr = PyUnicode_AsUTF8(pyResult);
else
pyRepr = "unknown representation";
+ Py_XDECREF(pyResult);
if(pyRepr.size() > 80)
{
pyRepr = pyRepr.substr(0, 76);