Commit d6864d29 authored by Oran Agra's avatar Oran Agra Committed by antirez
Browse files

additional fix to issue #2948

parent d8679070
......@@ -1147,6 +1147,9 @@ void processInputBuffer(redisClient *c) {
/* Only reset the client when the command was executed. */
if (processCommand(c) == REDIS_OK)
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;
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment