]> sigrok.org Git - libsigrok.git/commitdiff
hameg-hmo: Release enabled channels when acquisition start fails
authorGerhard Sittig <redacted>
Sun, 6 Nov 2016 11:08:02 +0000 (12:08 +0100)
committerUwe Hermann <redacted>
Sat, 7 Jan 2017 14:51:32 +0000 (15:51 +0100)
Commit db81fbb58261 made sure to release a potentially previously
allocated list of enabled channels before (re-)building the list in the
current invocation of acquisition start.

This commit frees the memory in the error path near the failed creation
already, which reduces the period of time where unused resources are
held, and eliminates a memory leak when acquisition is not stopped after
failed start.

Both approaches can coexist. Freeing an empty list is perfectly fine.


No differences found