From f1a61a94f0ed824ae1a867a3a5a3bc113d19bd9f Mon Sep 17 00:00:00 2001 From: Kenichi Ishigaki Date: Thu, 29 Jan 2009 02:08:59 +0000 Subject: [PATCH] DBD::SQLite: applied a patch to fix memory leakage [RT #37215] --- dbdimp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dbdimp.c b/dbdimp.c index 5b437b2..043ec08 100644 --- a/dbdimp.c +++ b/dbdimp.c @@ -162,9 +162,11 @@ sqlite_db_disconnect (SV *dbh, imp_dbh_t *imp_dbh) imp_dbh->db = NULL; av_undef(imp_dbh->functions); + SvREFCNT_dec(imp_dbh->functions); imp_dbh->functions = (AV *)NULL; av_undef(imp_dbh->aggregates); + SvREFCNT_dec(imp_dbh->aggregates); imp_dbh->aggregates = (AV *)NULL; return TRUE;