Closed jpflorijn closed 2 years ago
Base: 97.14% // Head: 97.14% // No change to project coverage :thumbsup:
Coverage data is based on head (
5c7ab75
) compared to base (0701528
). Patch has no changes to coverable lines.
:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.
Thank you so much for making the time to debug this and submit a PR for the fix! Merged and released as v6.2.8.
For every map, sequence and scalar emitted, lyaml leaks six bytes, because the mapping style parameter is
strdup()
-ed but not freed.This issue was first reported in #35.
The test code included in that report consistently showed leaks under at least lua5.1 and luajit 2.1.0-beta3; the following version under tighter GC settings makes the issue more visible though:
Fixed by freeing
style
analogously toencoding
andtype
.