aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc.c
diff options
context:
space:
mode:
authorPaul Eggert2011-07-29 14:14:19 -0700
committerPaul Eggert2011-07-29 14:14:19 -0700
commiteacb6b4bfa897c12c41a4af73f40ab61b45a8548 (patch)
treed0f9e055b6780b64db72c65753a793e1d1a59f66 /src/alloc.c
parent5402029425ceee114d7ed071ac981227f0d1fc38 (diff)
parent096a60526593c1571da1ec9137b878ad8178f833 (diff)
downloademacs-eacb6b4bfa897c12c41a4af73f40ab61b45a8548.tar.gz
emacs-eacb6b4bfa897c12c41a4af73f40ab61b45a8548.zip
Merge from trunk.
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)