UST support: release session handle on destroy
[lttng-tools.git] / lttng-sessiond / ust-app.c
index 616a7ae2f50c04ebf1365bc20d218d3ec28b256e..e8dc32733492f39d012b2a3a34fd542d14969471 100644 (file)
@@ -163,6 +163,9 @@ void delete_ust_app_session(int sock, struct ust_app_session *ua_sess)
        ret = hashtable_destroy(ua_sess->channels);
        assert(!ret);
 
+       if (ua_sess->handle != -1) {
+               ustctl_release_handle(sock, ua_sess->handle);
+       }
        free(ua_sess);
 }
 
This page took 0.023151 seconds and 4 git commands to generate.