I maintain the Fedora/EPEL package of dspam. I’ve received a bug report . It covers two issues. First that the driver uses auto_commit mode so all sql in individual transactions. And secondly an improper free call. You can see the attached patch. The free() call seems quite legitimately a bug. I wonder if anyone can comment on the transaction/auto_commit issue? I presume they don’t all need their own transaction but am not that familiar with the code base itself.