]> git.refcnt.org Git - colorize.git/commitdiff
Circumvent cleanup function for testing output
authorSteven Schubiger <stsc@refcnt.org>
Sat, 7 Nov 2015 21:33:14 +0000 (22:33 +0100)
committerSteven Schubiger <stsc@refcnt.org>
Sat, 7 Nov 2015 21:33:14 +0000 (22:33 +0100)
colorize.c

index c0baf60f01571d94eda0343392a85cb75da12c98..a6bd56d7e2e740f76ab5abccc15c94c238342d67 100644 (file)
@@ -795,8 +795,8 @@ merge_print_line (bool bold, const struct color **colors, const char *line, cons
 
 #ifdef TEST_MERGE_PART_LINE
     printf ("%s", part_line);
-    free (merged_part_line);
-    exit (EXIT_SUCCESS);
+    fflush (stdout);
+    _exit (EXIT_SUCCESS);
 #else
     print_line (bold, colors, part_line, 0);
     free (merged_part_line);