changeset 24364:2c148fbec289

(main): [!SYSTEM_MALLOC]: Call realloc and free as well as malloc before calling uninterrupt_malloc, for consistency. This also enables profiling to work on WINDOWSNT.
author Andrew Innes <andrewi@gnu.org>
date Sat, 20 Feb 1999 20:43:58 +0000
parents b7ccfe3bfb94
children 9f92c0ff8fe8
files src/emacs.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/emacs.c	Sat Feb 20 20:40:31 1999 +0000
+++ b/src/emacs.c	Sat Feb 20 20:43:58 1999 +0000
@@ -709,8 +709,9 @@
   /* Arrange to get warning messages as memory fills up.  */
   memory_warnings (0, malloc_warning);
 
-  /* Call malloc at least once, to run the initial __malloc_hook.  */
-  malloc (4);
+  /* Call malloc at least once, to run the initial __malloc_hook.
+     Also call realloc and free for consistency.  */
+  free (realloc (malloc (4), 4));
 
   /* Arrange to disable interrupt input inside malloc etc.  */
   uninterrupt_malloc ();