]> source.dussan.org Git - rspamd.git/commitdiff
One more memory leak in lua_redis.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 13 May 2015 13:41:06 +0000 (14:41 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 13 May 2015 13:41:06 +0000 (14:41 +0100)
src/lua/lua_redis.c

index b224c3452134c2391ee04c0e21ed5f337322edeb..8111ccf89a52ad8e46d2fbb73cc85ce64375eb4b 100644 (file)
@@ -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");