phacility / xhprof

XHProf is a function-level hierarchical profiler for PHP and has a simple HTML based user interface.
http://pecl.php.net/package/xhprof
Apache License 2.0
2.6k stars 924 forks source link

fix minor memleak fix in xhprof_enable() with ignored funcs #60

Closed tony2001 closed 9 years ago

tony2001 commented 9 years ago

the ignored funcs array (and its elements) is freed only on shutdown, so every xhprof_enable() call causes a minor memleak.

epriestley commented 9 years ago

I added a test for this in a64844de and applied the fix in ff8b3892. Thanks!