]> sigrok.org Git - libsigrok.git/commit
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)
commitaddbb09bf81444030dcd17094e8892a91875b157
tree971208551062daf5a1d9c66a5eb7a46a6284dca7
parentf396351704d6875f72c858a3e16aa698b64ecc43
hameg-hmo: fix potential memory leak

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.
src/hardware/hameg-hmo/api.c