Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
src/useradd.c: set_defaults(): Fix FILE* leak
Report: > shadow-4.15.0/src/useradd.c:575:2: alloc_fn: Storage is returned from allocation function "fdopen". > shadow-4.15.0/src/useradd.c:575:2: var_assign: Assigning: "ofp" = storage returned from "fdopen(ofd, "w")". > shadow-4.15.0/src/useradd.c:734:2: leaked_storage: Variable "ofp" going out of scope leaks the storage it points to. > 732| } > 733| > 734|-> return ret; > 735| } > 736| Link: <https://issues.redhat.com/browse/RHEL-35383> Reported-by: Iker Pedrosa <[email protected]> Reviewed-by: Iker Pedrosa <[email protected]> Signed-off-by: Alejandro Colomar <[email protected]>
- Loading branch information