diff options
author | 2014-10-17 06:07:50 +0000 | |
---|---|---|
committer | 2014-10-17 06:07:50 +0000 | |
commit | 014b1be8e77af715a19974acd738d56ba2e3587d (patch) | |
tree | 57fcee9bf06edaf401c1d3bda9415c135b02cb20 /lib/libedit/read.c | |
parent | In the new world order, setperf does not exist on ramdisks. (diff) | |
download | wireguard-openbsd-014b1be8e77af715a19974acd738d56ba2e3587d.tar.xz wireguard-openbsd-014b1be8e77af715a19974acd738d56ba2e3587d.zip |
Remove non-exposed malloc/realloc/free wrappers, and then substitute
reallocarray() where it helps.
ok doug
Diffstat (limited to 'lib/libedit/read.c')
-rw-r--r-- | lib/libedit/read.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libedit/read.c b/lib/libedit/read.c index f7c9bda8f5b..20dcc7aa733 100644 --- a/lib/libedit/read.c +++ b/lib/libedit/read.c @@ -1,4 +1,4 @@ -/* $OpenBSD: read.c,v 1.14 2011/07/07 05:40:42 okan Exp $ */ +/* $OpenBSD: read.c,v 1.15 2014/10/17 06:07:50 deraadt Exp $ */ /* $NetBSD: read.c,v 1.57 2010/07/21 18:18:52 christos Exp $ */ /*- @@ -366,7 +366,7 @@ read_pop(c_macro_t *ma) { int i; - el_free(ma->macro[0]); + free(ma->macro[0]); for (i = 0; i < ma->level; i++) ma->macro[i] = ma->macro[i + 1]; ma->level--; |