]> sigrok.org Git - libsigrok.git/commit
sr: fx2lafw: Fix memory leaks in receive_transfer
authorLars-Peter Clausen <redacted>
Thu, 21 Jun 2012 08:30:39 +0000 (10:30 +0200)
committerUwe Hermann <redacted>
Fri, 22 Jun 2012 07:23:30 +0000 (09:23 +0200)
commiteabf24035b29020085f01dd6e5a2f3c7075db23e
tree1798d34262a868de1eeff79155567013c5fd31b9
parent9edfee3ee31bc6cd7657392f2c9ac28ccf7a7dce
sr: fx2lafw: Fix memory leaks in receive_transfer

There are a few memory leaks in the receive_transfer transfer function. The most
serve of them is that a sample buffer is not freed if the triggered has not
matched yet, which causes a sigrok process which is waiting for a trigger to
consume several megabytes of memory within seconds. The other leaks are on the
error paths in that function.

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