X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Flib%2Flttng-ctl%2Flttng-ctl.c;h=bab62458b2b1967eb012df9e9dcb990e2f7775b8;hp=cc69dd5c23cdf8b39433653220d3a8c655961888;hb=49cca668b488572e43aebf83abb30ad5a31ac834;hpb=710c1f7394b50f2a41398dbe2e677a3220acda35 diff --git a/src/lib/lttng-ctl/lttng-ctl.c b/src/lib/lttng-ctl/lttng-ctl.c index cc69dd5c2..bab62458b 100644 --- a/src/lib/lttng-ctl/lttng-ctl.c +++ b/src/lib/lttng-ctl/lttng-ctl.c @@ -1680,3 +1680,11 @@ static void __attribute__((constructor)) init() /* Set socket for health check */ (void) set_health_socket_path(); } + +/* + * lib destructor + */ +static void __attribute__((destructor)) lttng_ctl_exit() +{ + free(tracing_group); +}