Skip to content

Commit

Permalink
Fix memory leak in redis backend, fixes #1325
Browse files Browse the repository at this point in the history
  • Loading branch information
sfan5 committed May 23, 2014
1 parent 73e5bc9 commit 94dba66
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/database-redis.cpp
Expand Up @@ -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();
Expand Down

0 comments on commit 94dba66

Please sign in to comment.