Commit f5a3c8c4 authored by Andrew Innes's avatar Andrew Innes

(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.
parent 95382f42
......@@ -709,8 +709,9 @@ main (argc, argv, envp)
/* 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 ();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment