https://issues.apache.org/SpamAssassin/show_bug.cgi?id=7034

--- Comment #5 from Mark Martinec <mark.marti...@ijs.si> ---
Created attachment 5209
  --> https://issues.apache.org/SpamAssassin/attachment.cgi?id=5209&action=edit
Avoid circular dependency through a closure in BayesStore/Redis.pm

The reason that old BayesStore::Redis object was not destroyed was
a circular data structure, referencing the BayesStore::Redis object
through TinyRedis on_connect method. The solution is to pass
db_id and a redis password as a copy, and not passing a $self
through a closure in BayesStore::Redis::connect.

(other few changes in the attached patch are 'just-in-case'
or debugging/cosmetic)

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to