mirror of
https://github.com/minetest/minetest.git
synced 2024-11-27 10:03:45 +01:00
Fix memory leak in redis backend, fixes #1325
This commit is contained in:
parent
73e5bc9c01
commit
94dba66c16
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user