From: Mathieu Desnoyers Date: Sun, 11 Dec 2011 16:12:57 +0000 (-0500) Subject: UST support: release session handle on destroy X-Git-Tag: v2.0-pre15~11 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=aee6bafd6ea002e75bc69d0c476543b9f807fd0b;p=lttng-tools.git UST support: release session handle on destroy Signed-off-by: Mathieu Desnoyers --- diff --git a/lttng-sessiond/ust-app.c b/lttng-sessiond/ust-app.c index 616a7ae2f..e8dc32733 100644 --- a/lttng-sessiond/ust-app.c +++ b/lttng-sessiond/ust-app.c @@ -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); }