iio: Check fd against != -1 and not > 0 and avoid leaks during error handling
authorBrendan Le Foll <brendan.le.foll@intel.com>
Mon, 21 Dec 2015 15:15:15 +0000 (15:15 +0000)
committerBrendan Le Foll <brendan.le.foll@intel.com>
Mon, 21 Dec 2015 15:15:15 +0000 (15:15 +0000)
commitf4385a8b8274095c62e875dbdd93b2acba83e369
tree691ec266ee26227ff4bdaefdab6f8cc3637ffd12
parentee69045ea8f1fe535b2f9c95bac4296882c95e36
iio: Check fd against != -1 and not > 0 and avoid leaks during error handling

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
src/iio/iio.c
src/mraa.c