]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - progs/tabs.c
ncurses 6.0 - patch 20161224
[ncurses.git] / progs / tabs.c
index e638a2c5b9768837237894d30d513f713c2d617a..9974c33560ffca4c18c0174fa43d9b6c504cae2e 100644 (file)
@@ -37,7 +37,7 @@
 #define USE_LIBTINFO
 #include <progs.priv.h>
 
-MODULE_ID("$Id: tabs.c,v 1.35 2015/04/04 14:57:47 tom Exp $")
+MODULE_ID("$Id: tabs.c,v 1.37 2015/07/04 21:14:42 tom Exp $")
 
 static void usage(void) GCC_NORETURN;
 
@@ -79,7 +79,7 @@ do_tabs(int *tab_list)
            break;
        }
     }
-    putchar('\n');
+    putchar('\r');
 }
 
 static int *
@@ -288,6 +288,7 @@ add_to_tab_list(char **append, const char *value)
 
        *append = result;
     }
+    free(copied);
     return result;
 }