From: sfan5 Date: Fri, 23 May 2014 11:30:58 +0000 (+0200) Subject: Fix memory leak in redis backend, fixes #1325 X-Git-Tag: 0.4.10~119 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=94dba66c167453f3a40f7d62a303c2aea7ac5f8f;p=oweals%2Fminetest.git Fix memory leak in redis backend, fixes #1325 --- diff --git a/src/database-redis.cpp b/src/database-redis.cpp index 1d77608f7..ff54753e6 100644 --- a/src/database-redis.cpp +++ b/src/database-redis.cpp @@ -116,6 +116,7 @@ void Database_Redis::saveBlock(MapBlock *block) throw FileNotGoodException(std::string("redis command 'HSET %s %s %b' failed: ") + ctx->errstr); if(reply->type == REDIS_REPLY_ERROR) throw FileNotGoodException("Failed to store block in Database"); + freeReplyObject(reply); // We just wrote it to the disk so clear modified flag block->resetModified();