diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2015-02-08 05:25:17 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2015-02-08 05:25:17 +0000 |
commit | c124cda35b5f6510c01cdad6d0a1543f3cf5e36e (patch) | |
tree | bf4eea242b56470e75f77a31dffd01cca7ca9d79 /bin | |
parent | e8cbda7ac443aa327b5a5528752317120a821881 (diff) |
it's safe to call free with null
Diffstat (limited to 'bin')
-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); } |