]> sigrok.org Git - libsigrok.git/commit
input/csv: improve cleanup code path, unbreak re-import
authorGerhard Sittig <redacted>
Sun, 28 Oct 2018 08:36:11 +0000 (09:36 +0100)
committerGerhard Sittig <redacted>
Sat, 21 Dec 2019 17:20:04 +0000 (18:20 +0100)
commit539188e52451d42a9962269135b9030aca19c902
tree432f756cfefe609021cf9478fd6bcb5dea9a0976
parent17c30d0593ae8db4cd8b185e8bc45a15e4beed5d
input/csv: improve cleanup code path, unbreak re-import

The cleanup() routine gets invoked upon shutdown, as well as before
re-importing another file. The cleanup() routine must not release
resources which get allocated in the init() routine, as the init()
routine won't run again in the module's lifetime. The cleanup() routine
must void those context fields which get evaluated in the next receive()
calls.
src/input/csv.c