bindings: python: fix a memory leak in Line.set_value()
authorBartosz Golaszewski <bartekgola@gmail.com>
Sun, 13 May 2018 21:25:06 +0000 (23:25 +0200)
committerBartosz Golaszewski <bartekgola@gmail.com>
Mon, 14 May 2018 10:01:13 +0000 (12:01 +0200)
commit27fec345ca2597f16b1be4962d4a0794b64cb45f
treeb43dbd268b86fb34c38ff4d677ac4251ae5b4834
parent5da2e8d7900c4fde7fab6c1570ea517f86965c66
bindings: python: fix a memory leak in Line.set_value()

We're not collecting the bulk object we're creating in this method. Add
Py_DECREF() where needed.

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