From: David Lawrence Ramsey Date: Thu, 16 Jun 2005 01:36:10 +0000 (+0000) Subject: fix memory leak X-Git-Tag: v1.3.8~115 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=4846ce7a6a2b0b2a24e4970be55dfb34b01fc32d;p=nano.git fix memory leak git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2688 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- 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);