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

index d0a09533940ba711ce511293d73b9738e1c971c9..fd5cf1189312903462f254c97d443b52b4a566e3 100755 (executable)
@@ -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);