diff options
author | sfan5 <sfan5@live.de> | 2014-05-23 13:30:58 +0200 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2014-05-23 13:30:58 +0200 |
commit | 94dba66c167453f3a40f7d62a303c2aea7ac5f8f (patch) | |
tree | a8c1b5ad429644d3d789167774202df4b1e72a19 /src | |
parent | 73e5bc9c011209be4f3aa7ee54a3fbf150259fa2 (diff) | |
download | minetest-94dba66c167453f3a40f7d62a303c2aea7ac5f8f.tar.gz minetest-94dba66c167453f3a40f7d62a303c2aea7ac5f8f.tar.bz2 minetest-94dba66c167453f3a40f7d62a303c2aea7ac5f8f.zip |
Fix memory leak in redis backend, fixes #1325
Diffstat (limited to 'src')
-rw-r--r-- | src/database-redis.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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(); |