commit c4e6e5fad600f9277ce2cd76b7f2cf85922c6fd3 (tree)
parent aa9caf5064b3fc01579b7bd8c765ff33323a073a
Author: Benjamin Feng <benjamin.feng@glassdoor.com>
Date: Wed, 29 Jan 2020 14:47:17 -0600
Add explicit free to docs
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/doc/docgen.zig b/doc/docgen.zig
@@ -673,6 +673,7 @@ const TermState = enum {
test "term color" {
const input_bytes = "A\x1b[32;1mgreen\x1b[0mB";
const result = try termColor(std.testing.leak_count_allocator, input_bytes);
+ defer std.testing.leak_count_allocator.free(result);
testing.expectEqualSlices(u8, "A<span class=\"t32\">green</span>B", result);
}