# HG changeset patch # User Andrew Innes # Date 919543438 0 # Node ID 2c148fbec289841302aae5d0651082da85f288a5 # Parent b7ccfe3bfb94d900f9796e83a78978c9db770948 (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. diff -r b7ccfe3bfb94 -r 2c148fbec289 src/emacs.c --- 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 ();