diff options
| author | Sebastian Keller <sebastiankeller@fastmail.net> | 2019-11-06 01:42:07 +0100 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-11-06 14:00:36 -0500 |
| commit | dd4e9fb16b17579de1b54cdea90df82e41a50340 (patch) | |
| tree | ab28bd85d288a7fb71502dc25cda1af07cb8ed75 /src/ast_render.cpp | |
| parent | 6b61fcddfa16eaf24e10817390efb0180cce9c70 (diff) | |
| download | zig-dd4e9fb16b17579de1b54cdea90df82e41a50340.tar.gz zig-dd4e9fb16b17579de1b54cdea90df82e41a50340.zip | |
Fixed a leak in the json parser.
parseString() created a copy of the string using the wrong allocator.
Instead of using the ArenaAllocator, it was using the allocator passed
into Parser.init(). This lead to a leak as the copied string was not
freed when the ArenaAllocator was deinited.
Diffstat (limited to 'src/ast_render.cpp')
0 files changed, 0 insertions, 0 deletions
