]> sigrok.org Git - libsigrok.git/commitdiff
hameg-hmo: fix potential memory leak
authorGerhard Sittig <redacted>
Sat, 10 Feb 2018 09:26:23 +0000 (10:26 +0100)
committerGerhard Sittig <redacted>
Sat, 10 Feb 2018 14:34:01 +0000 (15:34 +0100)
Make sure to release the allocated "pod enabled" memory, too, when SCPI
communication during channel setup fails. Defer the return with an error
(instead of duplicating the free() invocation).

This was reported by clang's scan-build.


No differences found