# HG changeset patch # User Richard M. Stallman # Date 1130516737 0 # Node ID 0e243de6311b98ff8e0915c04665ad62352907a7 # Parent 44a0b7df81e41dea00c50d599c592c481e944bae (spare_memory): No longer static. (xfree) [!SYSTEM_MALLOC]: Call refill_memory_reserve. diff -r 44a0b7df81e4 -r 0e243de6311b src/alloc.c --- a/src/alloc.c Fri Oct 28 16:24:35 2005 +0000 +++ b/src/alloc.c Fri Oct 28 16:25:37 2005 +0000 @@ -215,7 +215,7 @@ /* Points to memory space allocated as "spare", to be freed if we run out of memory. */ -static char *spare_memory; +char *spare_memory; /* Amount of spare memory to keep in reserve. */ @@ -805,6 +805,12 @@ BLOCK_INPUT; free (block); UNBLOCK_INPUT; + +#ifndef SYSTEM_MALLOC + /* Refill the spare memory if we can. */ + if (spare_memory == 0) + refill_memory_reserve (); +#endif }