From d4fb4588d62d120f05ddb31fe5d523fee34635ba Mon Sep 17 00:00:00 2001 From: Ben Kibbey Date: Mon, 7 Jan 2008 18:54:07 -0500 Subject: [PATCH] Call xmlInitParser() in client_thread() and xmlCleanupParser() before exiting the daemon. --- src/pwmd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pwmd.c b/src/pwmd.c index 4c9fc25a..d7b9416e 100644 --- a/src/pwmd.c +++ b/src/pwmd.c @@ -381,6 +381,7 @@ static void *client_thread(void *data) pth_attr_set(attr, PTH_ATTR_NAME, "keepalive"); thd->keepalive_tid = pth_spawn(attr, keepalive_thread, thd); pth_attr_destroy(attr); + xmlInitParser(); for (;;) { gint sig = 0; @@ -1872,6 +1873,7 @@ do_exit: g_key_file_free(keyfileh); g_free(rcfile); + xmlCleanupParser(); if (key_cache) { cache_clear(NULL, 2); -- 2.11.4.GIT