mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Fixed memleak (3 tests fails now)
This commit is contained in:
parent
98f801ccbc
commit
a816032285
1 changed files with 1 additions and 1 deletions
|
@ -1357,7 +1357,7 @@ static void php_pgsql_do_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent)
|
|||
/* hash it up */
|
||||
new_le.type = le_plink;
|
||||
new_le.ptr = pgsql;
|
||||
if (zend_hash_update_mem(&EG(persistent_list), str.s, &new_le, sizeof(zend_resource)) == NULL) {
|
||||
if (zend_hash_str_update_mem(&EG(persistent_list), str.s->val, str.s->len, &new_le, sizeof(zend_resource)) == NULL) {
|
||||
goto err;
|
||||
}
|
||||
PGG(num_links)++;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue