diff options
author | 2015-02-08 05:25:16 +0000 | |
---|---|---|
committer | 2015-02-08 05:25:16 +0000 | |
commit | a9c15d0c8e252f045dea56beeac831faa45f6422 (patch) | |
tree | c69cff6df3085a10fd0390727da62a5243ca20a5 | |
parent | Add a comment that ntpd MUST NOT use AI_ADDRCONFIG in host_dns() (diff) | |
download | wireguard-openbsd-a9c15d0c8e252f045dea56beeac831faa45f6422.tar.xz wireguard-openbsd-a9c15d0c8e252f045dea56beeac831faa45f6422.zip |
it's safe to call free with null
-rw-r--r-- | bin/csh/alloc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bin/csh/alloc.c b/bin/csh/alloc.c index 9fcb27bd2d0..28e9c99c765 100644 --- a/bin/csh/alloc.c +++ b/bin/csh/alloc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: alloc.c,v 1.13 2014/10/17 06:17:37 deraadt Exp $ */ +/* $OpenBSD: alloc.c,v 1.14 2015/02/08 05:25:16 tedu Exp $ */ /* $NetBSD: alloc.c,v 1.6 1995/03/21 09:02:23 cgd Exp $ */ /*- @@ -78,6 +78,5 @@ Calloc(size_t s, size_t n) void Free(ptr_t p) { - if (p) free(p); } |