From 480ecb6b5ce579af4008d4556bc71fa08098aa94 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Sun, 16 Sep 2007 09:40:45 +0000 Subject: [PATCH] (reset_malloc_hooks): Set the hooks to the previous values instead of zapping them. --- src/alloc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/alloc.c b/src/alloc.c index bcec8ea4560..3e2b6649e96 100644 --- a/src/alloc.c +++ b/src/alloc.c @@ -1342,9 +1342,9 @@ emacs_blocked_realloc (ptr, size, ptr2) void reset_malloc_hooks () { - __free_hook = 0; - __malloc_hook = 0; - __realloc_hook = 0; + __free_hook = old_free_hook; + __malloc_hook = old_malloc_hook; + __realloc_hook = old_realloc_hook; } #endif /* HAVE_GTK_AND_PTHREAD */ -- 2.39.2