aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/alloc.c')
-rw-r--r--src/alloc.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/alloc.c b/src/alloc.c
index eb0185a8e35..b96fc1f0642 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -3282,12 +3282,16 @@ memory_full (size_t nbytes)
3282 int enough_free_memory = 0; 3282 int enough_free_memory = 0;
3283 if (SPARE_MEMORY < nbytes) 3283 if (SPARE_MEMORY < nbytes)
3284 { 3284 {
3285 void *p = malloc (SPARE_MEMORY); 3285 void *p;
3286
3287 MALLOC_BLOCK_INPUT;
3288 p = malloc (SPARE_MEMORY);
3286 if (p) 3289 if (p)
3287 { 3290 {
3288 free (p); 3291 free (p);
3289 enough_free_memory = 1; 3292 enough_free_memory = 1;
3290 } 3293 }
3294 MALLOC_UNBLOCK_INPUT;
3291 } 3295 }
3292 3296
3293 if (! enough_free_memory) 3297 if (! enough_free_memory)