From 4846ce7a6a2b0b2a24e4970be55dfb34b01fc32d Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Thu, 16 Jun 2005 01:36:10 +0000 Subject: [PATCH] fix memory leak git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2688 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- src/nano.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/nano.c b/src/nano.c index e1d67897..30e74370 100644 --- a/src/nano.c +++ b/src/nano.c @@ -1401,6 +1401,8 @@ void do_tab(void) output[output_len] = '\0'; do_output(output, output_len, TRUE); + + free(output); } else { #endif do_output("\t", 1, TRUE);