aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/alloc.c')
-rw-r--r--src/alloc.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/alloc.c b/src/alloc.c
index 54533ff351a..b8744b3f09a 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -215,7 +215,7 @@ static int total_free_floats, total_floats;
215/* Points to memory space allocated as "spare", to be freed if we run 215/* Points to memory space allocated as "spare", to be freed if we run
216 out of memory. */ 216 out of memory. */
217 217
218static char *spare_memory; 218char *spare_memory;
219 219
220/* Amount of spare memory to keep in reserve. */ 220/* Amount of spare memory to keep in reserve. */
221 221
@@ -805,6 +805,12 @@ xfree (block)
805 BLOCK_INPUT; 805 BLOCK_INPUT;
806 free (block); 806 free (block);
807 UNBLOCK_INPUT; 807 UNBLOCK_INPUT;
808
809#ifndef SYSTEM_MALLOC
810 /* Refill the spare memory if we can. */
811 if (spare_memory == 0)
812 refill_memory_reserve ();
813#endif
808} 814}
809 815
810 816