Fix a memory leak in the redis example (#1447)

This commit is contained in:
lldxflwb 2022-12-02 20:00:55 +08:00 committed by GitHub
parent c5e596d942
commit 80ea3c4f30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -33,6 +33,8 @@ void Client::get(const HttpRequestPtr &,
&json,
&errors);
delete reader;
response["response"] = redisResponse;
if (parsingSuccessful)
{