From: Uwe Hermann Date: Fri, 15 Apr 2011 18:05:45 +0000 (+0200) Subject: LA8: free() sample buffers in hw_closedev(). X-Git-Tag: libsigrok-0.1.0~288 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=2f5c8c9696f4a4a8ca7e3c7e6e7d2766a4927026;p=libsigrok.git LA8: free() sample buffers in hw_closedev(). Thanks Ken Mobley of ChronoVu for the report. --- diff --git a/hardware/chronovu-la8/chronovu-la8.c b/hardware/chronovu-la8/chronovu-la8.c index 46a249ee..98a73284 100644 --- a/hardware/chronovu-la8/chronovu-la8.c +++ b/hardware/chronovu-la8/chronovu-la8.c @@ -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)