From: Jérémie Galarneau Date: Wed, 8 Jun 2016 17:31:13 +0000 (-0400) Subject: Fix: call xmlCleanupParser to free global libxml2 allocations X-Git-Tag: v2.7.4~8 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=7bca59a4979f16e1b300b232e33d5631d59e3d32;p=lttng-tools.git Fix: call xmlCleanupParser to free global libxml2 allocations Signed-off-by: Jérémie Galarneau --- diff --git a/src/common/config/config.c b/src/common/config/config.c index 3875f1684..f0d38ef92 100644 --- a/src/common/config/config.c +++ b/src/common/config/config.c @@ -2920,3 +2920,9 @@ end: } return ret; } + +static +void __attribute__((destructor)) session_config_exit(void) +{ + xmlCleanupParser(); +}