diff options
| author | Andreas Steffen <andreas.steffen@strongswan.org> | 2017-05-28 13:51:28 +0200 |
|---|---|---|
| committer | Andreas Steffen <andreas.steffen@strongswan.org> | 2017-05-29 10:57:34 +0200 |
| commit | fca4e70bd3a2b2dbfb3aff22d49979a430a93aa4 (patch) | |
| tree | 3dea810ce7bb2e989c695c57a2b3d32fefb11190 /src/libtnccs/plugins | |
| parent | a09e79ed5d3147da91d1331002ed1438fdd67496 (diff) | |
| download | strongswan-fca4e70bd3a2b2dbfb3aff22d49979a430a93aa4.tar.bz2 strongswan-fca4e70bd3a2b2dbfb3aff22d49979a430a93aa4.tar.xz | |
libtnccs: Fixed memory leak of global variables in libxml2
Diffstat (limited to 'src/libtnccs/plugins')
| -rw-r--r-- | src/libtnccs/plugins/tnccs_11/tnccs_11_plugin.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libtnccs/plugins/tnccs_11/tnccs_11_plugin.c b/src/libtnccs/plugins/tnccs_11/tnccs_11_plugin.c index f534af008..191adbb77 100644 --- a/src/libtnccs/plugins/tnccs_11/tnccs_11_plugin.c +++ b/src/libtnccs/plugins/tnccs_11/tnccs_11_plugin.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2010 Andreas Steffen + * Copyright (C) 2010-2017 Andreas Steffen * HSR Hochschule fuer Technik Rapperswil * * This program is free software; you can redistribute it and/or modify it @@ -17,6 +17,7 @@ #include "tnccs_11.h" #include <tnc/tnccs/tnccs_manager.h> +#include <libxml/parser.h> METHOD(plugin_t, get_name, char*, tnccs_11_plugin_t *this) @@ -39,6 +40,7 @@ METHOD(plugin_t, get_features, int, METHOD(plugin_t, destroy, void, tnccs_11_plugin_t *this) { + xmlCleanupParser(); free(this); } @@ -56,6 +58,7 @@ plugin_t *tnccs_11_plugin_create() .destroy = _destroy, }, ); + xmlInitParser(); return &this->plugin; } |
