diff options
author | Xinchen Hui <laruence@php.net> | 2014-05-19 14:57:17 +0800 |
---|---|---|
committer | Xinchen Hui <laruence@php.net> | 2014-05-19 14:57:17 +0800 |
commit | a8160322851a30dc908ec4681c20d3b86af1f199 (patch) | |
tree | b5a207bc3189db0d5693ddc405be3be02a14ae0d /ext/pgsql/pgsql.c | |
parent | 98f801ccbc23206a76892440822fb75448d0921e (diff) | |
download | php-git-a8160322851a30dc908ec4681c20d3b86af1f199.tar.gz |
Fixed memleak (3 tests fails now)
Diffstat (limited to 'ext/pgsql/pgsql.c')
-rw-r--r-- | ext/pgsql/pgsql.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c index be1f31cc6f..9d8cf2d9b3 100644 --- a/ext/pgsql/pgsql.c +++ b/ext/pgsql/pgsql.c @@ -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)++; |