Skip to content
Snippets Groups Projects
Commit 94dba66c authored by sfan5's avatar sfan5
Browse files

Fix memory leak in redis backend, fixes #1325

parent 73e5bc9c
Branches
Tags
No related merge requests found
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment