]> sigrok.org Git - libsigrok.git/commit
sr: fx2lafw: Properly free transfer
authorLars-Peter Clausen <redacted>
Sun, 24 Jun 2012 10:08:59 +0000 (12:08 +0200)
committerUwe Hermann <redacted>
Wed, 27 Jun 2012 22:40:51 +0000 (00:40 +0200)
commitf855de7575915a8b3a07ed32ff7ec6b431777317
treec7e73171dad40ea6a6508b9fdd789ecec7ca9779
parentbd47acabe33813acb7dd6a4ebf155418072b08b7
sr: fx2lafw: Properly free transfer

When freeing a transfer we also have to free the transfer buffer. We also have
to keep track of the number of allocated transfers and if the freed transfer was
the last one stop acquisition. This patch introduces a helper function which
takes care of all of this.

Signed-off-by: Lars-Peter Clausen <redacted>
hardware/fx2lafw/fx2lafw.c