about summary refs log tree commit diff
path: root/dlfcn
diff options
context:
space:
mode:
Diffstat (limited to 'dlfcn')
-rw-r--r--dlfcn/dlerror.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dlfcn/dlerror.c b/dlfcn/dlerror.c
index 1650eca729..929b5f439b 100644
--- a/dlfcn/dlerror.c
+++ b/dlfcn/dlerror.c
@@ -159,7 +159,7 @@ free_key_mem (void *mem)
 
   if (result->errstring != NULL
       && strcmp (result->errstring, "out of memory") != 0)
-    free (result->errstring);
+    free ((char *) result->errstring);
 
   free (mem);
   __libc_setspecific (key, NULL);