From: Andrey Hristov Date: Mon, 10 Jan 2011 15:28:52 +0000 (+0000) Subject: plug a leak X-Git-Tag: php-5.4.0alpha1~191^2~390 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=00eaff15282bbef88e1a41df337c99ef441221b9;p=php plug a leak --- 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); } /* }}} */