From: Vsevolod Stakhov Date: Wed, 13 May 2015 13:41:06 +0000 (+0100) Subject: One more memory leak in lua_redis. X-Git-Tag: 0.9.0~11 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2d2b064b948f21d797c80d3541f2ec283a95af5c;p=rspamd.git One more memory leak in lua_redis. --- diff --git a/src/lua/lua_redis.c b/src/lua/lua_redis.c index b224c3452..8111ccf89 100644 --- a/src/lua/lua_redis.c +++ b/src/lua/lua_redis.c @@ -350,6 +350,7 @@ lua_redis_make_request (lua_State *L) ud->cbref = cbref; lua_pushstring (L, "args"); lua_redis_parse_args (L, -1, cmd, ud); + ret = TRUE; } else { if (cbref != -1) { @@ -383,6 +384,8 @@ lua_redis_make_request (lua_State *L) else { lua_redis_parse_args (L, 0, cmd, ud); } + + ret = TRUE; } else { msg_err ("incorrect function invocation");