Tojaj/librepo — pull request #3 by akozumpl (2013-03-12 17:59:18+00:00)
Title: python: refcounting for the handle's PyObjects.

Returned values from PyCFunctions need to have the refcount increased [1],
else segfaults (or worse) emerge.

The unit test doesn't look like it does much, but in fact it pretty
reliably reproduces a segfault.

[1] http://docs.python.org/2/c-api/structures.html?highlight=pycfunction#PyCFunction