Unfortunately I forgot to free the parts that std_dev_clear() wouldn't take care of. This patch fixes that and also frees the device context that wasn't freed before either.
--- src/hardware/rigol-ds/api.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/src/hardware/rigol-ds/api.c b/src/hardware/rigol-ds/api.c index 6df0304..a2ba1cc 100644 --- a/src/hardware/rigol-ds/api.c +++ b/src/hardware/rigol-ds/api.c @@ -245,6 +245,9 @@ static void clear_helper(void *priv) g_free(devc->coupling[1]); g_free(devc->trigger_source); g_free(devc->trigger_slope); + g_free(devc->analog_groups); + g_free(devc->digital_group); + g_free(devc); } static int dev_clear(void) -- 1.7.8.6 ------------------------------------------------------------------------------ Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/ _______________________________________________ sigrok-devel mailing list sigrok-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sigrok-devel