mirror of
https://github.com/DBD-SQLite/DBD-SQLite
synced 2025-06-07 14:19:10 -04:00
DBD::SQLite: applied a patch to fix memory leakage [RT #37215]
This commit is contained in:
parent
99dfbee4ba
commit
f1a61a94f0
1 changed files with 2 additions and 0 deletions
2
dbdimp.c
2
dbdimp.c
|
@ -162,9 +162,11 @@ sqlite_db_disconnect (SV *dbh, imp_dbh_t *imp_dbh)
|
||||||
imp_dbh->db = NULL;
|
imp_dbh->db = NULL;
|
||||||
|
|
||||||
av_undef(imp_dbh->functions);
|
av_undef(imp_dbh->functions);
|
||||||
|
SvREFCNT_dec(imp_dbh->functions);
|
||||||
imp_dbh->functions = (AV *)NULL;
|
imp_dbh->functions = (AV *)NULL;
|
||||||
|
|
||||||
av_undef(imp_dbh->aggregates);
|
av_undef(imp_dbh->aggregates);
|
||||||
|
SvREFCNT_dec(imp_dbh->aggregates);
|
||||||
imp_dbh->aggregates = (AV *)NULL;
|
imp_dbh->aggregates = (AV *)NULL;
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
Loading…
Add table
Reference in a new issue