additional fix to issue #2948

This commit is contained in:
Oran Agra 2016-04-25 14:18:40 +03:00 committed by antirez
parent d8679070b8
commit d6864d2999

View File

@ -1147,6 +1147,9 @@ void processInputBuffer(redisClient *c) {
/* Only reset the client when the command was executed. */ /* Only reset the client when the command was executed. */
if (processCommand(c) == REDIS_OK) if (processCommand(c) == REDIS_OK)
resetClient(c); resetClient(c);
/* freeMemoryIfNeeded may flush slave output buffers. This may result
* into a slave, that may be the active client, to be freed. */
if (server.current_client == NULL) break;
} }
} }
} }