diff --git a/lib/redis/rediswriter.cpp b/lib/redis/rediswriter.cpp index 722bf95db..64cc471c1 100644 --- a/lib/redis/rediswriter.cpp +++ b/lib/redis/rediswriter.cpp @@ -268,6 +268,9 @@ boost::shared_ptr RedisWriter::ExecuteQuery(const std::vector(redisCommandArgv(m_Context, query.size(), argv, argvlen)); + delete [] argv; + delete [] argvlen; + if (reply->type == REDIS_REPLY_ERROR) { Log(LogInformation, "RedisWriter") << "Redis query failed: " << reply->str;