From: Kevin Grant Date: Sat, 3 Apr 2021 20:57:14 +0000 (+0100) Subject: kingst-la2016: fix segfault that often occurs when a capture is aborted X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=2622b4297fd4cc4bed5c06bb6ae0aaa8b40e0ece;p=libsigrok.git kingst-la2016: fix segfault that often occurs when a capture is aborted --- diff --git a/src/hardware/kingst-la2016/api.c b/src/hardware/kingst-la2016/api.c index c6f18c8f..47bea85d 100644 --- a/src/hardware/kingst-la2016/api.c +++ b/src/hardware/kingst-la2016/api.c @@ -681,6 +681,8 @@ static int handle_event(int fd, int revents, void *cb_data) g_free(devc->convbuffer); devc->convbuffer = NULL; + devc->transfer = NULL; + sr_dbg("transfer is now finished"); }