aboutsummaryrefslogtreecommitdiff
path: root/malloc/set-freeres.c
diff options
context:
space:
mode:
Diffstat (limited to 'malloc/set-freeres.c')
-rw-r--r--malloc/set-freeres.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/malloc/set-freeres.c b/malloc/set-freeres.c
index aa80eb64b8..b328cca7c6 100644
--- a/malloc/set-freeres.c
+++ b/malloc/set-freeres.c
@@ -20,6 +20,7 @@
#include <set-hooks.h>
#include <libc-internal.h>
+#include "../nss/nss_module.h"
#include "../libio/libioP.h"
DEFINE_HOOK (__libc_subfreeres, (void));
@@ -41,6 +42,8 @@ __libc_freeres (void)
{
void *const *p;
+ call_function_static_weak (__nss_module_freeres);
+
_IO_cleanup ();
/* We run the resource freeing after IO cleanup. */