Mercurial > emacs
diff src/emacs.c @ 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 | 9365b6b93858 |
children | 80d0a3294c24 |
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 ();