From 768e061172ff61cc665778399f4c52bd30a40dc3 Mon Sep 17 00:00:00 2001 From: Alexis Campailla Date: Mon, 2 Feb 2015 17:23:05 +0100 Subject: [PATCH] Abort on OOM It looks like https://github.com/MSOpenTech/redis/commit/62cc0e320d9afe28cc44a642d9e8f5e1c0e5d775#diff-07ce465381b20e496c6fb51bedd3491fR3105 inadvertently made the Windows side not abort when an OOM occurs. --- src/redis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/redis.c b/src/redis.c index e34f8bdee89..a23a390b60c 100644 --- a/src/redis.c +++ b/src/redis.c @@ -3463,8 +3463,8 @@ void redisOutOfMemoryHandler(size_t allocation_size) { #else redisLog(REDIS_WARNING,"Out Of Memory allocating %zu bytes!", allocation_size); - redisPanic("Redis aborting for OUT OF MEMORY"); #endif + redisPanic("Redis aborting for OUT OF MEMORY"); } void redisSetProcTitle(char *title) {