aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndrew Innes1999-02-20 20:43:58 +0000
committerAndrew Innes1999-02-20 20:43:58 +0000
commitf5a3c8c45d1dfdf16d2dd4011bd0128cdfd61027 (patch)
tree23912020781deafb320ea2b53523ae9e29e126be /src
parent95382f422495b3151d2233b9c49796998500aa41 (diff)
downloademacs-f5a3c8c45d1dfdf16d2dd4011bd0128cdfd61027.tar.gz
emacs-f5a3c8c45d1dfdf16d2dd4011bd0128cdfd61027.zip
(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.
Diffstat (limited to 'src')
-rw-r--r--src/emacs.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/emacs.c b/src/emacs.c
index bda8070fa5d..d01f55aa393 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -709,8 +709,9 @@ main (argc, argv, envp)
709 /* Arrange to get warning messages as memory fills up. */ 709 /* Arrange to get warning messages as memory fills up. */
710 memory_warnings (0, malloc_warning); 710 memory_warnings (0, malloc_warning);
711 711
712 /* Call malloc at least once, to run the initial __malloc_hook. */ 712 /* Call malloc at least once, to run the initial __malloc_hook.
713 malloc (4); 713 Also call realloc and free for consistency. */
714 free (realloc (malloc (4), 4));
714 715
715 /* Arrange to disable interrupt input inside malloc etc. */ 716 /* Arrange to disable interrupt input inside malloc etc. */
716 uninterrupt_malloc (); 717 uninterrupt_malloc ();