diff options
author | Binbin <binloveplay1314@qq.com> | 2022-02-09 13:33:24 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-09 07:33:24 +0200 |
commit | beb94c901e814f63fe1170d72104c81d62fa663a (patch) | |
tree | ca5b967b3c58a9ea24cf4ed2b6fbaafd62f3ab6c /src/sentinel.c | |
parent | 051cc3d2e630d0c2bb84495c6f6df0237684421e (diff) | |
download | redis-beb94c901e814f63fe1170d72104c81d62fa663a.tar.gz |
Fix INFO SENTINEL memory leak (#10268)
* Fix INFO SENTINEL memory leak
Introduced in #6891
* remove the copy-paste sentence
Diffstat (limited to 'src/sentinel.c')
-rw-r--r-- | src/sentinel.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/sentinel.c b/src/sentinel.c index 7e9211bd0..2342c0c00 100644 --- a/src/sentinel.c +++ b/src/sentinel.c @@ -4133,8 +4133,7 @@ void sentinelInfoCommand(client *c) { sections_dict = cached_all_info_sectoins; } - sds info = sdsempty(); - info = genRedisInfoString(sections_dict, 0, 0); + sds info = genRedisInfoString(sections_dict, 0, 0); if (sec_all || (dictFind(sections_dict, "sentinel") != NULL)) { dictIterator *di; dictEntry *de; |