Merge pull request #5709 from artix75/cluster_manager_fix_cmd

Fixed memory leak in clusterManagerCompareKeysValues.
This commit is contained in:
Salvatore Sanfilippo 2018-12-19 17:24:38 +01:00 committed by GitHub
commit f07205e48c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2993,6 +2993,8 @@ static int clusterManagerCompareKeysValues(clusterManagerNode *n1,
cleanup: cleanup:
if (r1) freeReplyObject(r1); if (r1) freeReplyObject(r1);
if (r2) freeReplyObject(r2); if (r2) freeReplyObject(r2);
zfree(argv);
zfree(argv_len);
return success; return success;
} }