]> git.ipfire.org Git - thirdparty/shadow.git/commit
Don't test for NULL before calling free(3)
authorAlex Colomar <alx.manpages@gmail.com>
Wed, 28 Sep 2022 20:03:52 +0000 (22:03 +0200)
committerIker Pedrosa <ikerpedrosam@gmail.com>
Thu, 29 Sep 2022 14:03:53 +0000 (16:03 +0200)
commit0d9799de040c4e1afd5ed4474464d29500f43774
tree5ed140c25cee01966b9bd140791e5703000b258b
parent1b0e189e35c5577134a9e6459f76ad6a76814d4d
Don't test for NULL before calling free(3)

free(3) accepts NULL, since the oldest ISO C.  I guess the
paranoid code was taking care of prehistoric implementations of
free(3).  I've never known of an implementation that doesn't
conform to this, so let's simplify this.

Remove xfree(3), which was effectively an equivalent of free(3).

Signed-off-by: Alejandro Colomar <alx@kernel.org>
lib/commonio.c
lib/getdef.c
lib/groupio.c
lib/prototypes.h
lib/sgetgrent.c
lib/tcbfuncs.c
libmisc/copydir.c
libmisc/xmalloc.c
src/gpasswd.c
src/login.c
src/newusers.c