]> git.wh0rd.org Git - nano.git/commitdiff
fix memory leak
authorDavid Lawrence Ramsey <pooka109@gmail.com>
Thu, 16 Jun 2005 01:36:10 +0000 (01:36 +0000)
committerDavid Lawrence Ramsey <pooka109@gmail.com>
Thu, 16 Jun 2005 01:36:10 +0000 (01:36 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2688 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

src/nano.c

index e1d6789720e80a8da0a2bab247522eac28a4c2cf..30e74370b1212be7559d326684eec7004cf013cd 100644 (file)
@@ -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);