]> gerrit.simantics Code Review - simantics/python.git/commit
Plug leaks from PySequence_GetItem. 28/328/1
authortkorvola <Timo.Korvola@vtt.fi>
Tue, 7 Feb 2017 11:39:18 +0000 (13:39 +0200)
committertkorvola <Timo.Korvola@vtt.fi>
Tue, 7 Feb 2017 11:45:26 +0000 (13:45 +0200)
commit843f99efcf673dfd4937db0f2ed1c973880e876b
treec14bf4edd1c6bf6d0b22cc1997b5e7781c871250
parent8885425046e0f89893c0e1ee0fe5c27948dcd2be
Plug leaks from PySequence_GetItem.

One needs to be careful and RTFM: PySequence_GetItem returns a new
reference but, e.g., PyDict_GetItem does not.

Change-Id: I93f08163a2bbf66da2966044c7bfc7abcd140bbd
org.simantics.pythonlink.win32.x86_64/jnipython.dll
org.simantics.pythonlink.win32.x86_64/src/sclpy.c