]> git.ipfire.org Git - thirdparty/rspamd.git/commit
[Fix] Release Redis connection in lua_redis_fin to avoid double-free
authorVsevolod Stakhov <vsevolod@rspamd.com>
Fri, 19 Dec 2025 09:39:59 +0000 (09:39 +0000)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Fri, 19 Dec 2025 09:39:59 +0000 (09:39 +0000)
commitb8de1b2542dedf8ab92a51e74b6f2a27c8d70e7b
tree4ad8285550eb04fac0def0a2789399f9fc18be44
parent99ba65fc30685e613c138dc1f68acdc51732f86f
[Fix] Release Redis connection in lua_redis_fin to avoid double-free

Also set ud->ctx = NULL so lua_redis_dtor won't try to release again
during Lua GC after the pool may have been destroyed.
src/lua/lua_redis.c