projects
/
zefram
/
minetest
/
minetest_engine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
73e5bc9
)
Fix memory leak in redis backend, fixes #1325
author
sfan5
<sfan5@live.de>
Fri, 23 May 2014 11:30:58 +0000
(13:30 +0200)
committer
sfan5
<sfan5@live.de>
Fri, 23 May 2014 11:30:58 +0000
(13:30 +0200)
src/database-redis.cpp
patch
|
blob
|
history
diff --git
a/src/database-redis.cpp
b/src/database-redis.cpp
index 1d77608f76786173211d3f5951cbfe2ed30d1e16..ff54753e6055bd62c5fc2535e6976bc23f1f3039 100644
(file)
--- a/
src/database-redis.cpp
+++ b/
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");
+ freeReplyObject(reply);
// We just wrote it to the disk so clear modified flag
block->resetModified();