bindings: python: fix a memory leak in gpiod_Line_event_wait()
authorBartosz Golaszewski <bartekgola@gmail.com>
Mon, 14 May 2018 09:18:18 +0000 (11:18 +0200)
committerBartosz Golaszewski <bartekgola@gmail.com>
Mon, 14 May 2018 10:01:13 +0000 (12:01 +0200)
commit15a623a7d29014e9c03f37be2ba45a2a7e31971f
treeef055d1f0ffa2e7df754ab2c104373636efcbeef
parent6610e5304844fa20ff9a6246f4aa9cb61a10b6a1
bindings: python: fix a memory leak in gpiod_Line_event_wait()

We don't return the object returned from gpiod_LineBulk_event_wait()
back to the interpreter. We need to collect it before returning True.

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