]> sigrok.org Git - sigrok-cli.git/commitdiff
Free trigger after acquisition session.
authorBert Vermeulen <redacted>
Tue, 8 Sep 2015 12:26:22 +0000 (14:26 +0200)
committerBert Vermeulen <redacted>
Tue, 8 Sep 2015 12:26:22 +0000 (14:26 +0200)
session.c

index 1d98877801a429e3f0b437f976f7958f68871056..b136dd4863955cb6662b7f70e16141b8888cf041 100644 (file)
--- 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);