From 19b334a08a4fee1aea10ffea30e8dbd0b95b2064 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Mon, 3 Oct 2005 03:53:57 +0000 Subject: [PATCH] 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 d0a0953394..fd5cf11893 100755 --- a/ext/pdo/pdo_dbh.c +++ b/ext/pdo/pdo_dbh.c @@ -1347,6 +1347,9 @@ static void pdo_dbh_free_storage(pdo_dbh_t *dbh TSRMLS_DC) efree(dbh->properties); dbh->properties = NULL; } + if (dbh->cls_methods) { + zend_hash_destroy(&dbh->cls_methods); + } if (!dbh->is_persistent) { dbh_free(dbh TSRMLS_CC); -- 2.50.1