Fix memory leaks in pkread.c demo file
authorMatt Caswell <matt@openssl.org>
Tue, 12 Mar 2019 10:21:39 +0000 (10:21 +0000)
committerMatt Caswell <matt@openssl.org>
Wed, 13 Mar 2019 09:54:49 +0000 (09:54 +0000)
commit81cd023f1dc5a8c9094f8e91c1e85e3c9b98a551
treee443fb459fe80bd224c3a76609464f203cab4bc1
parent8267becb8b2e3b5ec4d46e3df5656b747930be79
Fix memory leaks in pkread.c demo file

Also make various changes to bring the file into line with current coding
style.

Fixes #8456

Reviewed-by: Paul Dale <paul.dale@oracle.com>
Reviewed-by: Paul Yang <yang.yang@baishancloud.com>
(Merged from https://github.com/openssl/openssl/pull/8457)
demos/pkcs12/pkread.c