UST support: release session handle on destroy
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sun, 11 Dec 2011 16:12:57 +0000 (11:12 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sun, 11 Dec 2011 16:12:57 +0000 (11:12 -0500)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
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.027707 seconds and 4 git commands to generate.