[py] fix reference counting of exception types (thanks @wackou)
authorPaul Brossier <piem@piem.org>
Sat, 29 Jun 2019 10:42:36 +0000 (12:42 +0200)
committerPaul Brossier <piem@piem.org>
Sat, 29 Jun 2019 10:42:36 +0000 (12:42 +0200)
commit673d7e3259ce178b3b2e3228221887af026a6e78
treeebc1f85280e0aa1cb780fd90a0952336f05b7210
parent841ceede7d6094d043eb988ce8948bc2ef6d9475
[py] fix reference counting of exception types (thanks @wackou)

Commit 8bfef30 exposed a reference counting error, causing the
interpreter to crash before exiting. The solution is to incref the
exception type before calling PyErr_Restore.
python/ext/py-filter.c