From: Bert Vermeulen Date: Tue, 8 Sep 2015 12:26:22 +0000 (+0200) Subject: Free trigger after acquisition session. X-Git-Tag: sigrok-cli-0.6.0~17 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=15a14bffcbbc762f81a13de665eeabd2193c3bec;p=sigrok-cli.git Free trigger after acquisition session. --- diff --git a/session.c b/session.c index 1d98877..b136dd4 100644 --- a/session.c +++ b/session.c @@ -606,6 +606,7 @@ void run_session(void) return; } + trigger = NULL; if (opt_triggers) { if (!parse_triggerstring(sdi, opt_triggers, &trigger)) { sr_session_destroy(session); @@ -694,6 +695,9 @@ void run_session(void) if (opt_continuous) clear_anykey(); + if (trigger) + sr_trigger_free(trigger); + sr_session_datafeed_callback_remove_all(session); sr_session_destroy(session);