]> sigrok.org Git - libsigrok.git/commit - src/input/raw_analog.c
input/raw_analog: silence "use after free" compiler warning
authorGerhard Sittig <redacted>
Thu, 8 Feb 2018 20:47:21 +0000 (21:47 +0100)
committerGerhard Sittig <redacted>
Thu, 8 Feb 2018 20:47:21 +0000 (21:47 +0100)
commit603643fa71d5f3523e81bbda079eeebbeaeb2273
tree71faaffce938bea622d9bcc9283a9b951ad8e77c
parentd8fb599c679a6da64f28bcafce514558b786b6c7
input/raw_analog: silence "use after free" compiler warning

The cleanup() call will void the memory which 'inc' points to. Move the
dereference before the release.

This was reported by clang's scan-build.
src/input/raw_analog.c