tests: iter: free non-mockup GPIO chips
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Thu, 11 Jul 2019 15:24:28 +0000 (17:24 +0200)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Thu, 11 Jul 2019 15:24:28 +0000 (17:24 +0200)
commit689dd6e6876375413510fa3d0eab7108f0f66202
treec8b60e86de6d08169fa9e7e647dabc842d3aa193
parent583cf823d31636a9b5ca9eb1b4d3587a134a7c79
tests: iter: free non-mockup GPIO chips

When using gpiod_foreach_chip_noclose() we need to close any non-mockup
GPIO chip that may be present in the system. Otherwise we'll be leaking
memory.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
tests/tests-iter.c