diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-05-20 20:39:38 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-05-20 20:39:38 +0000 |
commit | 88917b0f143e2eac468aea14338b4d9eddba389d (patch) | |
tree | 790fd49f0632b93a7ad9cd02974bff82efa60b25 /libc/stdlib | |
parent | 43eb269ab1d216074e18dadc74c9671398dfe938 (diff) |
replace "if (p) free(p)" by just "free(p)" - free(NULL) is safe.
Diffstat (limited to 'libc/stdlib')
-rw-r--r-- | libc/stdlib/_atexit.c | 3 |
1 files changed, 1 insertions, 2 deletions
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 |