aboutsummaryrefslogtreecommitdiff
path: root/std/debug.zig
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2017-01-23 00:11:21 -0500
committerAndrew Kelley <superjoe30@gmail.com>2017-01-23 00:11:21 -0500
commit0b34439c1f380a1a9e26d219550a1cfd31fa698e (patch)
treee1fac39142d7e4963a542826f8fee0d4661c2d7b /std/debug.zig
parente5b17580107ad0783b7f07de100aeb9ccf175603 (diff)
downloadzig-0b34439c1f380a1a9e26d219550a1cfd31fa698e.tar.gz
zig-0b34439c1f380a1a9e26d219550a1cfd31fa698e.zip
mem.free no longer requires explicit type argument
Diffstat (limited to 'std/debug.zig')
-rw-r--r--std/debug.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/std/debug.zig b/std/debug.zig
index 6ea77c03c5..4051ff123a 100644
--- a/std/debug.zig
+++ b/std/debug.zig
@@ -196,7 +196,7 @@ fn getString(st: &ElfStackTrace, offset: u64) -> %[]u8 {
fn readAllocBytes(in_stream: &io.InStream, size: usize) -> %[]u8 {
const buf = %return global_allocator.alloc(u8, size);
- %defer global_allocator.free(u8, buf);
+ %defer global_allocator.free(buf);
%return in_stream.read(buf);
return buf;
}