diff --git a/src/networking.c b/src/networking.c index 65a67021f..dd2ca1aae 100644 --- a/src/networking.c +++ b/src/networking.c @@ -1634,6 +1634,7 @@ int processInlineBuffer(client *c) { * However the is an exception: masters may send us just a newline * to keep the connection active. */ if (querylen != 0 && c->flags & CLIENT_MASTER) { + sdsfreesplitres(argv,argc); serverLog(LL_WARNING,"WARNING: Receiving inline protocol from master, master stream corruption? Closing the master connection and discarding the cached master."); setProtocolError("Master using the inline protocol. Desync?",c); return C_ERR;