MFH: Fixed memory leak.

This commit is contained in:
Ilia Alshanetsky 2005-10-03 03:54:06 +00:00
parent 612dab64ee
commit 9a0bed9863

View File

@ -1357,6 +1357,9 @@ static void dbh_free(pdo_dbh_t *dbh TSRMLS_DC)
if (dbh->def_stmt_ctor_args) {
zval_ptr_dtor(&dbh->def_stmt_ctor_args);
}
if (dbh->cls_methods) {
zend_hash_destroy(&dbh->cls_methods);
}
pefree(dbh, dbh->is_persistent);
}