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:55:54 +0000 (09:55 +0000)
commitcd61ad38b54d22a3d17db9d679c24d9a602cb5d8
treededeb29a7440ce7e9ec3a166285a0e9e07b38c54
parent191570d0b94c88fa95b3c223456863448d697fce
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)

(cherry picked from commit 81cd023f1dc5a8c9094f8e91c1e85e3c9b98a551)
demos/pkcs12/pkread.c