free null cleanup finale Don't check for NULL before calling OPENSSL_free Reviewed-by: Richard Levitte <levitte@openssl.org>
diff --git a/apps/passwd.c b/apps/passwd.c index c529792..8dd8542 100644 --- a/apps/passwd.c +++ b/apps/passwd.c
@@ -284,10 +284,8 @@ end: ERR_print_errors(bio_err); - if (salt_malloc) - OPENSSL_free(salt_malloc); - if (passwd_malloc) - OPENSSL_free(passwd_malloc); + OPENSSL_free(salt_malloc); + OPENSSL_free(passwd_malloc); BIO_free(in); return (ret); }