Skip to content

mythosil/swig-python-incref

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

swig-python-incref

Sample project to find out the behaviour of typemap and Py_INCREF.

When you forgot to call Py_INCREF for PyObject (such as Py_True and Py_False), program is going to crash after that Python decrement its refcount and deallocate it.

Build and Run

$ make
$ make run

Reproduce crash

Comment out Py_INCREF in incref.i.

Build and run it, then you can see it crash.

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published