Subject: | Invalid ref count on objects from Python class instances |
The following code:
require Inline::Python;
Inline::Python::py_eval('class Foo: pass');
Inline::Python::py_eval('Foo()', 0);
Causes the warning message:
Attempt to free unreferenced scalar: SV 0x8048c0, Perl interpreter:
0x800000.
It seems that the Py2Pl function does not correctly set the ref count on
objects from Python class instances.
I am using Inline Python 0.29 with Perl 5.10.0 and Python 2.6.2. I have
seen the problem on Linux, Mac OS X, and Windows.