From 9a0bed9863150dc090d3ff544d1b0c7d50c01a47 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Mon, 3 Oct 2005 03:54:06 +0000 Subject: [PATCH] MFH: Fixed memory leak. --- ext/pdo/pdo_dbh.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ext/pdo/pdo_dbh.c b/ext/pdo/pdo_dbh.c index cfcdb597cd..7752973010 100755 --- a/ext/pdo/pdo_dbh.c +++ b/ext/pdo/pdo_dbh.c @@ -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); } -- 2.50.1