]> sigrok.org Git - libsigrok.git/commitdiff
LA8: free() sample buffers in hw_closedev().
authorUwe Hermann <redacted>
Fri, 15 Apr 2011 18:05:45 +0000 (20:05 +0200)
committerUwe Hermann <redacted>
Fri, 15 Apr 2011 18:05:45 +0000 (20:05 +0200)
Thanks Ken Mobley of ChronoVu for the report.

hardware/chronovu-la8/chronovu-la8.c

index 46a249ee45a7859ae9b723af71dd34a3fbc26d49..98a732846812a99665c0265b784109f46996601c 100644 (file)
@@ -612,6 +612,10 @@ static void hw_closedev(int device_index)
        }
 
        sdi->status = SR_ST_INACTIVE;
+
+       sr_dbg("la8: %s: freeing sample buffers", __func__);
+       free(la8->mangled_buf);
+       free(la8->final_buf);
 }
 
 static void hw_cleanup(void)