projects
/
lttng-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
710c1f7
)
Add liblttng-ctl destructor to cleanup memory
author
David Goulet
<dgoulet@efficios.com>
Fri, 26 Oct 2012 17:12:47 +0000
(13:12 -0400)
committer
David Goulet
<dgoulet@efficios.com>
Fri, 26 Oct 2012 17:12:47 +0000
(13:12 -0400)
Signed-off-by: David Goulet <dgoulet@efficios.com>
src/lib/lttng-ctl/lttng-ctl.c
patch
|
blob
|
blame
|
history
diff --git
a/src/lib/lttng-ctl/lttng-ctl.c
b/src/lib/lttng-ctl/lttng-ctl.c
index cc69dd5c23cdf8b39433653220d3a8c655961888..bab62458b2b1967eb012df9e9dcb990e2f7775b8 100644
(file)
--- 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);
+}
This page took
0.026815 seconds
and
4
git commands to generate.