From 7b0ee1353d0e3ece7986e12c6684f1aac7483cea Mon Sep 17 00:00:00 2001 From: Matt Caswell Date: Tue, 26 Apr 2016 18:37:58 +0100 Subject: [PATCH] Free allocated password strings on exit Reviewed-by: Richard Levitte --- apps/srp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/srp.c b/apps/srp.c index d81346d2d7..5ba9375984 100644 --- a/apps/srp.c +++ b/apps/srp.c @@ -597,6 +597,8 @@ int srp_main(int argc, char **argv) if (verbose) BIO_printf(bio_err, "SRP terminating with code %d.\n", ret); + OPENSSL_free(passin); + OPENSSL_free(passout); if (ret) ERR_print_errors(bio_err); if (randfile) -- 2.34.1