]> sigrok.org Git - libsigrok.git/commitdiff
kingst-la2016: fix segfault that often occurs when a capture is aborted
authorKevin Grant <redacted>
Sat, 3 Apr 2021 20:57:14 +0000 (21:57 +0100)
committerSoeren Apel <redacted>
Fri, 10 Sep 2021 21:23:15 +0000 (23:23 +0200)
src/hardware/kingst-la2016/api.c

index c6f18c8f6610bf7e17393de83840b14f0a98a34f..47bea85d77d040e7d88972bebf3741709a91f105 100644 (file)
@@ -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");
        }