]> granicus.if.org Git - php/commitdiff
plug a leak
authorAndrey Hristov <andrey@php.net>
Mon, 10 Jan 2011 15:28:52 +0000 (15:28 +0000)
committerAndrey Hristov <andrey@php.net>
Mon, 10 Jan 2011 15:28:52 +0000 (15:28 +0000)
ext/mysqlnd/mysqlnd_plugin.c

index 49e684318be4c0ad83628b9342a32e17863ff232..97e1bada29c026be6ec4df93cfdbb9165a67fbd8 100644 (file)
@@ -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);
 }
 /* }}} */