#include <config.h>
#endif
-#include <yaz/yconfig.h>
+#include <yaz/log.h>
#if YAZ_POSIX_THREADS
#include <pthread.h>
#endif
extern void yaz_log_init_globals(void);
+extern void yaz_log_deinit_globals(void);
#if HAVE_GCRYPT_H
GCRY_THREAD_OPTION_PTHREAD_IMPL;
#endif
if (yaz_init_flag)
{
+ yaz_log_deinit_globals();
#if HAVE_GNUTLS_H
gnutls_global_deinit();
#endif