Fix some resource leaks in the apps

Reviewed-by: Tim Hudson <tjh@openssl.org>
4 files changed