bindings: python: fix a memory leak in error path
authorBartosz Golaszewski <bartekgola@gmail.com>
Fri, 13 Jul 2018 08:10:34 +0000 (10:10 +0200)
committerBartosz Golaszewski <bartekgola@gmail.com>
Fri, 13 Jul 2018 08:11:12 +0000 (10:11 +0200)
commitead4d6b46ac84d4c24dae8a92418ecac9766be6c
treea8c27a1d8783787f2be41825b3e0ae2532ef1b51
parent3c660a3ec524b52c6f51fb4ffe2b2388c2b0f845
bindings: python: fix a memory leak in error path

We need to decref the iter object in Line.set_values() if the
conversion from python to C unsigned integer fails.

Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
bindings/python/gpiodmodule.c