diff options
| author | Andrey Hristov <andrey@php.net> | 2013-01-15 11:32:44 +0100 |
|---|---|---|
| committer | Andrey Hristov <andrey@php.net> | 2013-01-15 11:32:44 +0100 |
| commit | d377a266b27e0d0b2ac088333564f8d1f05cceb8 (patch) | |
| tree | eabea3b98925e0f8640703e5dcf02bd304f123f5 /ext/mysqlnd/mysqlnd.c | |
| parent | 5718568830ebea6684f3093a5681eb0d44d6d417 (diff) | |
| download | php-git-d377a266b27e0d0b2ac088333564f8d1f05cceb8.tar.gz | |
plug a leak - forgot ot use the dtor already written
Diffstat (limited to 'ext/mysqlnd/mysqlnd.c')
| -rw-r--r-- | ext/mysqlnd/mysqlnd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/mysqlnd/mysqlnd.c b/ext/mysqlnd/mysqlnd.c index 1023b3e5f4..f5b10632d2 100644 --- a/ext/mysqlnd/mysqlnd.c +++ b/ext/mysqlnd/mysqlnd.c @@ -1103,6 +1103,7 @@ MYSQLND_METHOD(mysqlnd_conn, connect)(MYSQLND * conn_handle, } /* }}} */ + /* {{{ mysqlnd_connect */ PHPAPI MYSQLND * mysqlnd_connect(MYSQLND * conn_handle, const char * host, const char * user, @@ -2455,7 +2456,7 @@ MYSQLND_METHOD(mysqlnd_conn_data, set_client_option_2d)(MYSQLND_CONN_DATA * cons if (!conn->options->connect_attr) { goto oom; } - zend_hash_init(conn->options->connect_attr, 0, NULL, NULL, conn->persistent); + zend_hash_init(conn->options->connect_attr, 0, NULL, connect_attr_item_dtor, conn->persistent); } DBG_INF_FMT("Adding [%s][%s]", key, value); { |
