Skip to content
Browse files

Fix memory leak in redis backend, fixes #1325

  • Loading branch information
sfan5 committed May 23, 2014
1 parent 73e5bc9 commit 94dba66c167453f3a40f7d62a303c2aea7ac5f8f
Showing with 1 addition and 0 deletions.
  1. +1 −0 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");

// We just wrote it to the disk so clear modified flag

0 comments on commit 94dba66

Please sign in to comment.
You can’t perform that action at this time.