From: Edin Kadribasic Date: Sat, 2 Jul 2005 22:48:06 +0000 (+0000) Subject: Don't crash on exit by destroying the same hash twice X-Git-Tag: php-5.1.0b3~217 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9ac84b2f1ac1180b65bb75760d801b609abacee9;p=php Don't crash on exit by destroying the same hash twice --- diff --git a/ext/odbc/php_odbc.c b/ext/odbc/php_odbc.c index 1b11986d20..0ba798e211 100644 --- a/ext/odbc/php_odbc.c +++ b/ext/odbc/php_odbc.c @@ -246,7 +246,7 @@ static void _close_odbc_pconn(zend_rsrc_list_entry *rsrc TSRMLS_DC) odbc_result *res; odbc_connection *conn = (odbc_connection *)rsrc->ptr; - nument = zend_hash_next_free_element(&EG(regular_list)); + nument = zend_hash_next_free_element(&EG(persistent_list)); for(i = 1; i < nument; i++) { ptr = zend_list_find(i, &type); if (ptr && (type == le_result)) {