com php-src: plug a leak - forgot ot use the dtor already written: ext/mysqlnd/mysqlnd.c
| From: | Andrey Hristov | Date: | Tue, 15 Jan 2013 10:32:44 +0000 |
| Subject: | com php-src: plug a leak - forgot ot use the dtor already written: ext/mysqlnd/mysqlnd.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-70975@lists.php.net to get a copy of this message | ||
Commit: d377a266b27e0d0b2ac088333564f8d1f05cceb8
Author: Andrey Hristov <andrey@php.net> Tue, 15 Jan 2013 11:32:44 +0100
Parents: 5718568830ebea6684f3093a5681eb0d44d6d417
Branches: PHP-5.5 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=d377a266b27e0d0b2ac088333564f8d1f05cceb8
Log:
plug a leak - forgot ot use the dtor already written
Changed paths:
M ext/mysqlnd/mysqlnd.c
Diff:
diff --git a/ext/mysqlnd/mysqlnd.c b/ext/mysqlnd/mysqlnd.c
index 1023b3e..f5b1063 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);
{