]> granicus.if.org Git - php/commitdiff
MFH: Fixed memory leak.
authorIlia Alshanetsky <iliaa@php.net>
Mon, 3 Oct 2005 03:54:06 +0000 (03:54 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Mon, 3 Oct 2005 03:54:06 +0000 (03:54 +0000)
ext/pdo/pdo_dbh.c

index cfcdb597cd8865063c272ae170cbb6fc01b95539..77529730103e629498c2fa718550413e2d100e9d 100755 (executable)
@@ -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);
 }