apps/passwd.c: free before error exiting
authorPeiwei Hu <jlu.hpw@foxmail.com>
Tue, 4 Jan 2022 01:10:32 +0000 (09:10 +0800)
committerTomas Mraz <tomas@openssl.org>
Wed, 5 Jan 2022 09:02:02 +0000 (10:02 +0100)
commitea4d16bc60dee53feb71997c1e78379eeb69b7ac
treecef529026922fcb1b56dd031437fcc775ebfd1e6
parentabc4345a19430869b9a8925c6defc9e9ce977429
apps/passwd.c: free before error exiting

use goto instead of returning directly while error handling

Signed-off-by: Peiwei Hu <jlu.hpw@foxmail.com>
Reviewed-by: Ben Kaduk <kaduk@mit.edu>
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17404)
apps/passwd.c