From eaed5dbbca2d59eeb5326c0caccdace11bdb0501 Mon Sep 17 00:00:00 2001 From: hpa Date: Wed, 14 Nov 2001 20:51:57 +0000 Subject: [PATCH] Fix trivial memory leak --- tftp/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tftp/main.c b/tftp/main.c index c0ae285..1b45005 100644 --- a/tftp/main.c +++ b/tftp/main.c @@ -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);