Fix some memory leaks in the openssl app
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Mon, 11 Sep 2023 04:38:31 +0000 (06:38 +0200)
committerBernd Edlinger <bernd.edlinger@hotmail.de>
Thu, 21 Sep 2023 12:39:36 +0000 (14:39 +0200)
commit8c040c086ca11a519975c58961a5dc933aa6524a
tree3ba0ef6ed64669b4dc82a50ba3e6905913f3cb7d
parent080bd08fd32608b4f2edfa4b1e87e199b08a8835
Fix some memory leaks in the openssl app

In some error cases the normal cleanup did not
happen, but instead an exit(1) which caused some
memory leaks, as reported in #22049.

Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: Nicola Tuveri <nic.tuv@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/22055)
apps/dgst.c
apps/dhparam.c
apps/dsaparam.c
apps/gendsa.c
apps/genpkey.c
apps/genrsa.c
apps/lib/apps.c
apps/req.c