Unverified Commit beb94c90 authored by Binbin's avatar Binbin Committed by GitHub
Browse files

Fix INFO SENTINEL memory leak (#10268)

* Fix INFO SENTINEL memory leak

Introduced in #6891

* remove the copy-paste sentence
parent 051cc3d2
...@@ -4133,8 +4133,7 @@ void sentinelInfoCommand(client *c) { ...@@ -4133,8 +4133,7 @@ void sentinelInfoCommand(client *c) {
sections_dict = cached_all_info_sectoins; sections_dict = cached_all_info_sectoins;
} }
sds info = sdsempty(); sds info = genRedisInfoString(sections_dict, 0, 0);
info = genRedisInfoString(sections_dict, 0, 0);
if (sec_all || (dictFind(sections_dict, "sentinel") != NULL)) { if (sec_all || (dictFind(sections_dict, "sentinel") != NULL)) {
dictIterator *di; dictIterator *di;
dictEntry *de; dictEntry *de;
......
# Check the basic monitoring and failover capabilities.
source "../tests/includes/init-tests.tcl" source "../tests/includes/init-tests.tcl"
test "info command with at most one argument" { test "info command with at most one argument" {
......
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