aboutsummaryrefslogtreecommitdiff
path: root/src/ast_render.cpp
diff options
context:
space:
mode:
authorSebastian Keller <sebastiankeller@fastmail.net>2019-11-06 01:42:07 +0100
committerAndrew Kelley <andrew@ziglang.org>2019-11-06 14:00:36 -0500
commitdd4e9fb16b17579de1b54cdea90df82e41a50340 (patch)
treeab28bd85d288a7fb71502dc25cda1af07cb8ed75 /src/ast_render.cpp
parent6b61fcddfa16eaf24e10817390efb0180cce9c70 (diff)
downloadzig-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