thread: free(NULL) is safe, lmalloc() always return para-aligned
authorH. Peter Anvin <hpa@zytor.com>
Sat, 23 Apr 2011 02:29:09 +0000 (19:29 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Sat, 23 Apr 2011 02:29:09 +0000 (19:29 -0700)
commit4dde6f6df7d830842010d3fc35b5fb948bc834f9
treecae1468036665e7d155017710aa69b7a7b900ab9
parent2fa8eb93e5b2fc684d27f018c0a84341eaed5476
thread: free(NULL) is safe, lmalloc() always return para-aligned

free(NULL) is safe and permitted, no reason to conditionalize calling
free().

lmalloc() will always return a paragraph-aligned memory block, so we
don't have to play games with the offset.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
core/thread/exit_thread.c
core/thread/start_thread.c