]> git.ipfire.org Git - thirdparty/shadow.git/commit
src/useradd.c: set_defaults(): Fix order of clean-ups
authorAlejandro Colomar <alx@kernel.org>
Fri, 17 May 2024 12:05:31 +0000 (14:05 +0200)
committerAlejandro Colomar <alx@kernel.org>
Fri, 17 May 2024 23:15:10 +0000 (01:15 +0200)
commitf8fc6371f69930bbd5801284256e182ba35ced2a
tree15b6441011f531f28a55ee0cc0c159e5a0cdac8a
parent4c16416ebc5f0958d58a1ea1e7890eafd9f8bb75
src/useradd.c: set_defaults(): Fix order of clean-ups

Resources should be freed in the inverse order of the allocation.
This refactor prepares for the following commits, which fix some leaks.

Reviewed-by: Iker Pedrosa <ipedrosa@redhat.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
src/useradd.c