From 1e7659609bddd40471faf9a8e81ee7554d77dce9 Mon Sep 17 00:00:00 2001 From: Bert Vermeulen Date: Tue, 8 Sep 2015 14:25:10 +0200 Subject: [PATCH] Don't free trigger when destroying the session. The trigger must be freed by the client. --- src/session.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/session.c b/src/session.c index 3b8423d7..58be4446 100644 --- a/src/session.c +++ b/src/session.c @@ -125,8 +125,6 @@ SR_API int sr_session_destroy(struct sr_session *session) sr_session_dev_remove_all(session); g_mutex_clear(&session->stop_mutex); - if (session->trigger) - sr_trigger_free(session->trigger); g_slist_free_full(session->owned_devs, (GDestroyNotify)sr_dev_inst_free);