Fix a mem leak in the ocsp app
authorMatt Caswell <matt@openssl.org>
Mon, 1 Oct 2018 11:06:06 +0000 (12:06 +0100)
committerMatt Caswell <matt@openssl.org>
Tue, 2 Oct 2018 09:58:05 +0000 (10:58 +0100)
commitcb853a65e248fced131162774a987ece3351872d
tree1e7dd70a40370c458ddad2afba9667a68bd5b712
parenta2516f0c3e9474f8ac16f713fa0d9b1caff994ac
Fix a mem leak in the ocsp app

Free memory allocated in the parent process that is not needed in the
child. We also free it in the parent. Technically this isn't really
required since we end up calling exit() soon afterwards - but to
prevent false positives we free it anyway.

Fixes a Coverity issue.

Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7335)

(cherry picked from commit c20a76f695922f409c316399f7290530f7728f19)
apps/ocsp.c