Skip to content

Commit 94dba66

Browse files
committedMay 23, 2014
Fix memory leak in redis backend, fixes #1325
1 parent 73e5bc9 commit 94dba66

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎src/database-redis.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ void Database_Redis::saveBlock(MapBlock *block)
116116
throw FileNotGoodException(std::string("redis command 'HSET %s %s %b' failed: ") + ctx->errstr);
117117
if(reply->type == REDIS_REPLY_ERROR)
118118
throw FileNotGoodException("Failed to store block in Database");
119+
freeReplyObject(reply);
119120

120121
// We just wrote it to the disk so clear modified flag
121122
block->resetModified();

0 commit comments

Comments
 (0)
Please sign in to comment.