Commit 97719d9
Fixed issue #2317: Code coverage leaks memory
This happens because commit d3a8a6b guarded the xdebug_path_free call in
xdebug_code_coverage_end_of_function by a NULL check on path->elements.
The original intention of the check was preventing a crash in
xdebug_create_key_for_path, but this also prevents freeing the path.1 parent 774d02d commit 97719d9
1 file changed
+7
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
722 | 722 | | |
723 | 723 | | |
724 | 724 | | |
725 | | - | |
| 725 | + | |
726 | 726 | | |
727 | 727 | | |
728 | 728 | | |
729 | | - | |
| 729 | + | |
| 730 | + | |
730 | 731 | | |
731 | | - | |
| 732 | + | |
732 | 733 | | |
733 | | - | |
734 | | - | |
735 | | - | |
736 | | - | |
| 734 | + | |
737 | 735 | | |
| 736 | + | |
| 737 | + | |
738 | 738 | | |
739 | 739 | | |
740 | 740 | | |
| |||
0 commit comments