diff options
author | mestre <mestre@cvs.openbsd.org> | 2015-12-26 13:48:39 +0000 |
---|---|---|
committer | mestre <mestre@cvs.openbsd.org> | 2015-12-26 13:48:39 +0000 |
commit | 77dacb3a755c5bf10592153ea90a64276fb3f37e (patch) | |
tree | 0f3fb78e08e8ab96a57f6ca27ee79dd65b70073e /bin/csh/misc.c | |
parent | 9e0c1a6cd858ffb73c75dd8aeb6e89e6b8c3ff12 (diff) |
Replace handrolled xfree() function by directly using free(3)
OK mmcc@
Diffstat (limited to 'bin/csh/misc.c')
-rw-r--r-- | bin/csh/misc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/csh/misc.c b/bin/csh/misc.c index 5a82eb29c25..3a3ab323090 100644 --- a/bin/csh/misc.c +++ b/bin/csh/misc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: misc.c,v 1.17 2015/10/26 22:03:06 naddy Exp $ */ +/* $OpenBSD: misc.c,v 1.18 2015/12/26 13:48:38 mestre Exp $ */ /* $NetBSD: misc.c,v 1.6 1995/03/21 09:03:09 cgd Exp $ */ /*- @@ -124,8 +124,8 @@ blkfree(Char **av0) if (!av0) return; for (; *av; av++) - xfree(* av); - xfree(av0); + free(* av); + free(av0); } Char ** @@ -252,7 +252,7 @@ lshift(Char **v, int c) Char **u; for (u = v; *u && --c >= 0; u++) - xfree(*u); + free(*u); (void) blkcpy(v, u); } |