Fix a memory leak in the redis example (#1447)
This commit is contained in:
parent
c5e596d942
commit
80ea3c4f30
|
@ -33,6 +33,8 @@ void Client::get(const HttpRequestPtr &,
|
||||||
&json,
|
&json,
|
||||||
&errors);
|
&errors);
|
||||||
|
|
||||||
|
delete reader;
|
||||||
|
|
||||||
response["response"] = redisResponse;
|
response["response"] = redisResponse;
|
||||||
if (parsingSuccessful)
|
if (parsingSuccessful)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue