summaryrefslogtreecommitdiff
path: root/lib/libedit/read.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2014-10-17 06:07:51 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2014-10-17 06:07:51 +0000
commit2fc87aaf4f058bd3567ac9f2b5e11fcbd8145b30 (patch)
treea68f80bfdd2783b171721145f8ef0653a7495e04 /lib/libedit/read.c
parentedc23c755c5272dc39fee3694ffee0a4b023345d (diff)
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.c4
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--;