Skip to content

json: fix memleak on sumtype decoding#23197

Merged
spytheman merged 2 commits intovlang:masterfrom
felipensp:fix_json_memleak_object
Dec 18, 2024
Merged

json: fix memleak on sumtype decoding#23197
spytheman merged 2 commits intovlang:masterfrom
felipensp:fix_json_memleak_object

Conversation

@felipensp
Copy link
Copy Markdown
Member

@felipensp felipensp commented Dec 17, 2024

Fix leftover memleak on json lib.

To test use:
v -cc clang-17 -cflags -fsanitize=address,pointer-compare,pointer-subtract test vlib/json/tests/json_sumtype_test.v

Huly®: V_0.6-21634

@felipensp felipensp marked this pull request as ready for review December 18, 2024 10:26
@spytheman spytheman merged commit 41bb90c into vlang:master Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants