From 1e484911c49863a26e6c85f071bced106db8cb5e Mon Sep 17 00:00:00 2001 From: Marc Schink Date: Mon, 5 Aug 2013 14:40:23 +0200 Subject: [PATCH] Remove datafeed callbacks to prevent memory leak. --- sigrok-cli.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sigrok-cli.c b/sigrok-cli.c index 48a409d..0daf79e 100644 --- a/sigrok-cli.c +++ b/sigrok-cli.c @@ -1741,6 +1741,7 @@ static void run_session(void) if (opt_continuous) clear_anykey(); + sr_session_datafeed_callback_remove_all(); sr_session_destroy(); g_slist_free(devices); -- 2.30.2