diff options
author | Karel Zak | 2010-10-29 13:29:28 +0200 |
---|---|---|
committer | Karel Zak | 2010-10-29 13:29:28 +0200 |
commit | 5d757a9fdeab9bc3be5c9181abe28b3afe0bd199 (patch) | |
tree | d09db3fec1726d3bf9e92c65a36d55b9c876a557 /text-utils/ul.c | |
parent | chrt: Add noreturn attribute to show_usage() function (diff) | |
download | kernel-qcow2-util-linux-5d757a9fdeab9bc3be5c9181abe28b3afe0bd199.tar.gz kernel-qcow2-util-linux-5d757a9fdeab9bc3be5c9181abe28b3afe0bd199.tar.xz kernel-qcow2-util-linux-5d757a9fdeab9bc3be5c9181abe28b3afe0bd199.zip |
remove free() from atexit() callbacks
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'text-utils/ul.c')
-rw-r--r-- | text-utils/ul.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/text-utils/ul.c b/text-utils/ul.c index dbcc32148..ab0a6e77c 100644 --- a/text-utils/ul.c +++ b/text-utils/ul.c @@ -78,7 +78,6 @@ void outc(wint_t c, int width); void setmode(int newmode); static void setcol(int newcol); static void needcol(int col); -static void exitbuf(void); static void sig_handler(int signo); #define IESC '\033' @@ -169,7 +168,6 @@ int main(int argc, char **argv) if ( (tigetflag("os") && ENTER_BOLD==NULL ) || (tigetflag("ul") && ENTER_UNDERLINE==NULL && UNDER_CHAR==NULL)) must_overstrike = 1; - atexit(exitbuf); initbuf(); if (optind == argc) filter(stdin); @@ -607,8 +605,3 @@ static void sig_handler(int signo) _exit(EXIT_SUCCESS); } -static void exitbuf(void) -{ - free(obuf); - obuf = NULL; -} |