From 85dc039632f8b7fec2c7e87aed7271daccf46aee Mon Sep 17 00:00:00 2001 From: xackus <14938807+xackus@users.noreply.github.com> Date: Mon, 7 Dec 2020 12:30:04 +0100 Subject: [PATCH] std.c: freeing null is a no-op --- lib/std/c.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/std/c.zig b/lib/std/c.zig index 074ee9790..5ebbb9dd2 100644 --- a/lib/std/c.zig +++ b/lib/std/c.zig @@ -248,7 +248,7 @@ pub extern "c" fn setresgid(rgid: gid_t, egid: gid_t, sgid: gid_t) c_int; pub extern "c" fn malloc(usize) ?*c_void; pub extern "c" fn realloc(?*c_void, usize) ?*c_void; -pub extern "c" fn free(*c_void) void; +pub extern "c" fn free(?*c_void) void; pub extern "c" fn futimes(fd: fd_t, times: *[2]timeval) c_int; pub extern "c" fn utimes(path: [*:0]const u8, times: *[2]timeval) c_int;