std.c: freeing null is a no-op

This commit is contained in:
xackus
2020-12-07 12:30:04 +01:00
committed by Andrew Kelley
parent 01ff3684dc
commit 05fefc0d3f

View File

@@ -259,7 +259,7 @@ pub usingnamespace switch (builtin.os.tag) {
};
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 posix_memalign(memptr: **c_void, alignment: usize, size: usize) c_int;
pub extern "c" fn futimes(fd: fd_t, times: *[2]timeval) c_int;