diff --git a/apps/req.c b/apps/req.c index 5656f6767c88d..b02d26115f908 100644 --- a/apps/req.c +++ b/apps/req.c @@ -680,7 +680,7 @@ int req_main(int argc, char **argv) } goto end; } - BIO_free(out); + BIO_free_all(out); out = NULL; BIO_printf(bio_err, "-----\n"); }