Cleanup the EVP_MD_CTX before exit rather than after
Reviewed-by: Matt Caswell <matt@openssl.org>
This commit is contained in:
parent
4e295148c3
commit
c44844d928
@ -157,8 +157,8 @@ int main(int argc, char *argv[])
|
|||||||
if (err)
|
if (err)
|
||||||
printf("ERROR: %d\n", err);
|
printf("ERROR: %d\n", err);
|
||||||
# endif
|
# endif
|
||||||
EXIT(err);
|
|
||||||
EVP_MD_CTX_cleanup(&c);
|
EVP_MD_CTX_cleanup(&c);
|
||||||
|
EXIT(err);
|
||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user