Commit 7b0ee135 authored by Matt Caswell's avatar Matt Caswell
Browse files

Free allocated password strings on exit

parent a3768e0c
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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)