BUG/MINOR: contrib/spoa-server: Do not free reference to NULL
authorGilchrist Dadaglo <dadaglo@amazon.com>
Mon, 24 Aug 2020 19:21:33 +0000 (19:21 +0000)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 1 Sep 2020 16:28:40 +0000 (18:28 +0200)
commitc7d303a0a8962f955e9dd271ee9775dd8eb88cfe
tree7b453178741905847f1006af1170d39d5a353a73
parent9f0c984cf50fee3a2282993b573be2f049efe5ab
BUG/MINOR: contrib/spoa-server: Do not free reference to NULL

As per https://docs.python.org/3/c-api/refcounting.html, Py_DECREF
should not be called on NULL objects.

This patch must be backported as far as 2.0.
contrib/spoa_server/ps_python.c