Fix sample code
authorGreg Zaverucha <gregz@microsoft.com>
Wed, 28 Jun 2017 00:38:25 +0000 (17:38 -0700)
committerRichard Levitte <levitte@openssl.org>
Wed, 28 Jun 2017 22:38:26 +0000 (00:38 +0200)
commit519a5d1ef2ca3ba0adf0bc1d7dff984e8523d813
tree6819afead52f8f20ecb870f09f46ac169f881d07
parentafe9bba749b9fd897b7e7d416d904852d867d2c2
Fix sample code

Fix memory leak in sample encryption code and check return value of
fopen.

CLA: trivial

Signed-off-by: Greg Zaverucha <gregz@microsoft.com>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3790)
doc/man3/EVP_EncryptInit.pod