From b9500900b14102e87a57840a89b6714b8b7840d2 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Thu, 30 Oct 2008 20:29:55 +0000 Subject: 25972: leaked and uninitialised memory found by valgrind --- Src/Zle/complete.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Src/Zle/complete.c') diff --git a/Src/Zle/complete.c b/Src/Zle/complete.c index 97d148b3a..bc56bc05a 100644 --- a/Src/Zle/complete.c +++ b/Src/Zle/complete.c @@ -464,7 +464,7 @@ parse_class(Cpattern p, char *iptr) * As the input string is metafied, but shouldn't contain shell * tokens, we can just add our own tokens willy nilly. */ - optr = p->u.str = zalloc((optr-iptr) + 1); + optr = p->u.str = zhalloc((optr-iptr) + 1); while (firsttime || *iptr != endchar) { int ch; -- cgit v1.2.3