sr: fx2lafw: Fix potential leaks in acquisition_start error paths
authorLars-Peter Clausen <lars@metafoo.de>
Tue, 3 Jul 2012 21:58:40 +0000 (23:58 +0200)
committerBert Vermeulen <bert@biot.com>
Tue, 3 Jul 2012 23:11:50 +0000 (01:11 +0200)
commit87ff6a074e0fb45d7a9a79f2475260707157162b
treef802715fb750743e5812994f733ad8f19c817995
parent24274d061040835179218e2e5a83723537773a65
sr: fx2lafw: Fix potential leaks in acquisition_start error paths

Call abort_acquisition if starting sampling fails in acquisition_start, this
will ensure that all already allocated resources are being freed again.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
libsigrok/hardware/fx2lafw/fx2lafw.c