diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-09-13 16:28:09 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-09-13 16:28:09 +0100 |
commit | df9ee0b1caf1f5617fbf90cf1e4ff155757b5866 (patch) | |
tree | 3ea87afad47377048064de0ebb82d7e87f4ec4e4 /src/libserver/fuzzy_backend | |
parent | 9cfb64d5afd8a523d353e6b5a0c83f8579071876 (diff) | |
download | rspamd-df9ee0b1caf1f5617fbf90cf1e4ff155757b5866.tar.gz rspamd-df9ee0b1caf1f5617fbf90cf1e4ff155757b5866.zip |
[Minor] Do not unref what's not been refed
Diffstat (limited to 'src/libserver/fuzzy_backend')
-rw-r--r-- | src/libserver/fuzzy_backend/fuzzy_backend_redis.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libserver/fuzzy_backend/fuzzy_backend_redis.c b/src/libserver/fuzzy_backend/fuzzy_backend_redis.c index 0de487534..18e049926 100644 --- a/src/libserver/fuzzy_backend/fuzzy_backend_redis.c +++ b/src/libserver/fuzzy_backend/fuzzy_backend_redis.c @@ -172,7 +172,7 @@ rspamd_fuzzy_backend_redis_dtor (struct rspamd_fuzzy_backend_redis *backend) { lua_State *L = backend->L; - if (backend->conf_ref) { + if (backend->conf_ref != -1) { luaL_unref (L, LUA_REGISTRYINDEX, backend->conf_ref); } |