From: Ilia Alshanetsky Date: Mon, 3 Oct 2005 03:53:57 +0000 (+0000) Subject: Fixed memory leak. X-Git-Tag: RELEASE_0_9_0~50 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=19b334a08a4fee1aea10ffea30e8dbd0b95b2064;p=php Fixed memory leak. --- 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);