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