]> sigrok.org Git - libsigrok.git/commit
output/text: Fix memory leak of internal state buffers.
authorpoljar (Damir Jelić) <redacted>
Tue, 19 Nov 2013 11:03:20 +0000 (12:03 +0100)
committerBert Vermeulen <redacted>
Wed, 20 Nov 2013 21:03:02 +0000 (22:03 +0100)
commit8c273ac57ce34d5a8c8b5093413564af69968041
treefa1d8ec11fc6df7612e819ed4fa1160c5c4a3b9c
parent61bab807f4b85660c07b1ac62a3ae2b35b333e5e
output/text: Fix memory leak of internal state buffers.

The text output module keeps buffers for internal state, upon receiving a DF_END
packet it frees the internal context but the buffers are never freed.

This adds a text_cleanup() helper function and registers it as the cleanup
function within all the text output modules.
output/text/ascii.c
output/text/bits.c
output/text/hex.c
output/text/text.c
output/text/text.h