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