]> sigrok.org Git - libsigrok.git/commit
output/srzip: silence "use after free" compiler warning
authorGerhard Sittig <redacted>
Thu, 8 Feb 2018 21:06:53 +0000 (22:06 +0100)
committerUwe Hermann <redacted>
Fri, 9 Feb 2018 20:32:04 +0000 (21:32 +0100)
commitd3ec7035bc543e983aeb8cee723cb2c78f0f109a
tree9581a36566889fa0824572d75b4412eed651d937
parenta21fef07b65ef6fb77ac2b6a96de51177a84302a
output/srzip: silence "use after free" compiler warning

Defer memory g_free() until after the data gets accessed one last time.

This was reported by clang's scan-build.
src/output/srzip.c