diff options
Diffstat (limited to 'malloc')
-rw-r--r-- | malloc/set-freeres.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/malloc/set-freeres.c b/malloc/set-freeres.c index 5c19a2725c..856ff7831f 100644 --- a/malloc/set-freeres.c +++ b/malloc/set-freeres.c @@ -21,6 +21,7 @@ #include <libc-internal.h> #include <unwind-link.h> #include <dlfcn/dlerror.h> +#include <ldsodefs.h> #include "../nss/nsswitch.h" #include "../libio/libioP.h" @@ -67,6 +68,10 @@ __libc_freeres (void) call_function_static_weak (__libc_dlerror_result_free); +#ifdef SHARED + GLRO (dl_libc_freeres) (); +#endif + for (p = symbol_set_first_element (__libc_freeres_ptrs); !symbol_set_end_p (__libc_freeres_ptrs, p); ++p) free (*p); |