Patch is against OpenSSL_1_0_0-stable branch. Second (valid) BIO_free(in) is after the end: label, as usual.
Index: apps/pkcs8.c =================================================================== RCS file: /cvs-openssl/openssl/apps/pkcs8.c,v retrieving revision 1.35 diff -u -r1.35 pkcs8.c --- apps/pkcs8.c 12 Feb 2009 18:06:11 -0000 1.35 +++ apps/pkcs8.c 10 Sep 2009 16:15:34 -0000 @@ -275,7 +275,6 @@ } if (topk8) { - BIO_free(in); /* Not needed in this section */ pkey = load_key(bio_err, infile, informat, 1, passin, e, "key"); if (!pkey) ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List openssl-dev@openssl.org Automated List Manager majord...@openssl.org