Commit 585884da authored by Alon Diamant's avatar Alon Diamant Committed by antirez
Browse files

Fixed memory leaks in rdbSaveToSlavesSockets()

parent ca3dd5e5
...@@ -1491,7 +1491,9 @@ int rdbSaveToSlavesSockets(void) { ...@@ -1491,7 +1491,9 @@ int rdbSaveToSlavesSockets(void) {
{ {
retval = REDIS_ERR; retval = REDIS_ERR;
} }
zfree(msg);
} }
zfree(clientids);
exitFromChild((retval == REDIS_OK) ? 0 : 1); exitFromChild((retval == REDIS_OK) ? 0 : 1);
} else { } else {
/* Parent */ /* Parent */
......
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