--- tls.c.orig	2015-05-12 21:30:56.109277103 +0200
+++ tls.c	2015-05-12 21:32:04.813322506 +0200
@@ -41,7 +41,9 @@
 volatile int tls_initialized=0;
 
 NOEXPORT void tls_platform_init();
+#if 0
 NOEXPORT void free_function(void *);
+#endif
 
 /**************************************** thread local storage */
 
@@ -50,8 +52,10 @@
     tls_platform_init();
     tls_initialized=1;
     ui_tls=tls_alloc(NULL, NULL, "ui");
+#if 0
     CRYPTO_set_mem_ex_functions(str_alloc_detached_debug,
         str_realloc_debug, free_function);
+#endif
 }
 
 /* this has to be the first function called by a new thread */
@@ -177,9 +181,11 @@
 
 /**************************************** OpenSSL allocator hook */
 
+#if 0
 NOEXPORT void free_function(void *ptr) {
     /* CRYPTO_set_mem_ex_functions() needs a function rather than a macro */
     str_free(ptr);
 }
+#endif
 
 /* end of tls.c */
