summaryrefslogtreecommitdiff
path: root/ext/mysqlnd/mysqlnd_plugin.c
diff options
context:
space:
mode:
authorAndrey Hristov <andrey@php.net>2011-01-10 15:28:52 +0000
committerAndrey Hristov <andrey@php.net>2011-01-10 15:28:52 +0000
commit00eaff15282bbef88e1a41df337c99ef441221b9 (patch)
treeb08ff8c712bcb8accd994631963895ec98a9bc34 /ext/mysqlnd/mysqlnd_plugin.c
parent61d49db1f3547cd762ab70a1410185351f903d7c (diff)
downloadphp-git-00eaff15282bbef88e1a41df337c99ef441221b9.tar.gz
plug a leak
Diffstat (limited to 'ext/mysqlnd/mysqlnd_plugin.c')
-rw-r--r--ext/mysqlnd/mysqlnd_plugin.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/ext/mysqlnd/mysqlnd_plugin.c b/ext/mysqlnd/mysqlnd_plugin.c
index 49e684318b..97e1bada29 100644
--- a/ext/mysqlnd/mysqlnd_plugin.c
+++ b/ext/mysqlnd/mysqlnd_plugin.c
@@ -75,11 +75,10 @@ static struct st_mysqlnd_typeii_plugin_example mysqlnd_example_plugin =
static
enum_func_status mysqlnd_example_plugin_end(void * p TSRMLS_DC)
{
-#if A0
struct st_mysqlnd_typeii_plugin_example * plugin = (struct st_mysqlnd_typeii_plugin_example *) p;
-#endif
DBG_ENTER("mysqlnd_example_plugin_end");
-
+ mysqlnd_stats_end(plugin->plugin_header.plugin_stats.values);
+ plugin->plugin_header.plugin_stats.values = NULL;
DBG_RETURN(PASS);
}
/* }}} */