llvmpy/llvmpy — pull request #105 by jyapayne (2014-05-26 04:53:09+00:00)
Title: Fixed issue #100: Already released error

This issue would cause running the example program to crash with the error:
File "/usr/local/lib/python2.7/dist-packages/llvm/passes.py", line 161, in add
self._ptr.add(pass_obj._ptr)
File "/usr/local/lib/python2.7/dist-packages/llvmpy/api/llvm/__init__.py", line 3726, in add
capsule.release_ownership(unwrapped1[0])
File "/usr/local/lib/python2.7/dist-packages/llvmpy/capsule.py", line 113, in release_ownership
raise Exception("Already released")
Exception: Already released