From 88917b0f143e2eac468aea14338b4d9eddba389d Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Tue, 20 May 2008 20:39:38 +0000 Subject: replace "if (p) free(p)" by just "free(p)" - free(NULL) is safe. --- libc/stdlib/_atexit.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libc/stdlib') diff --git a/libc/stdlib/_atexit.c b/libc/stdlib/_atexit.c index a27a4a199..21aa30c81 100644 --- a/libc/stdlib/_atexit.c +++ b/libc/stdlib/_atexit.c @@ -298,8 +298,7 @@ void __exit_handler(int status) } #ifdef __UCLIBC_DYNAMIC_ATEXIT__ /* Free up memory used by the __exit_function_table structure */ - if (__exit_function_table) - free(__exit_function_table); + free(__exit_function_table); #endif } #endif -- cgit v1.2.3