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.8.1~13 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=3ee9e54d21bf6373e2cdff937fa25f2989aaac04;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/session-config.c b/src/common/config/session-config.c index 9df815bff..6c639af44 100644 --- a/src/common/config/session-config.c +++ b/src/common/config/session-config.c @@ -3012,3 +3012,9 @@ end: } return ret; } + +static +void __attribute__((destructor)) session_config_exit(void) +{ + xmlCleanupParser(); +}