Fix trivial memory leak

This commit is contained in:
hpa 2001-11-14 20:51:57 +00:00
parent 01acb3dc7f
commit eaed5dbbca

View file

@ -272,6 +272,7 @@ getmoreargs(const char *partial, const char *mprompt)
line = xmalloc(len+elen+1);
strcpy(line, partial);
strcpy(line+len, eline);
free(eline);
#ifdef HAVE_READLINE_HISTORY_H
add_history(line);