diff options
Diffstat (limited to 'src/alloc.c')
| -rw-r--r-- | src/alloc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/alloc.c b/src/alloc.c index be98cfd5f53..2d490f3bb75 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -3844,6 +3844,9 @@ set_interval_marked (INTERVAL i) | |||
| 3844 | void | 3844 | void |
| 3845 | memory_full (size_t nbytes) | 3845 | memory_full (size_t nbytes) |
| 3846 | { | 3846 | { |
| 3847 | if (!initialized) | ||
| 3848 | fatal ("memory exhausted"); | ||
| 3849 | |||
| 3847 | /* Do not go into hysterics merely because a large request failed. */ | 3850 | /* Do not go into hysterics merely because a large request failed. */ |
| 3848 | bool enough_free_memory = false; | 3851 | bool enough_free_memory = false; |
| 3849 | if (SPARE_MEMORY < nbytes) | 3852 | if (SPARE_MEMORY < nbytes) |