forked from mirrors/tftp-hpa-google
Fix trivial memory leak
This commit is contained in:
parent
01acb3dc7f
commit
eaed5dbbca
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue