Do not free p if it hasn't been used yet.
[openssl.git] / apps / rsa.c
index 6cadcb21747ad5a899bb024eeb231cc1bf08a30b..60a33815276443949c23f32cf9b0d9ffe6213a09 100644 (file)
@@ -113,6 +113,9 @@ int MAIN(int argc, char **argv)
                if ((bio_err=BIO_new(BIO_s_file())) != NULL)
                        BIO_set_fp(bio_err,stderr,BIO_NOCLOSE|BIO_FP_TEXT);
 
+       if (!load_config(bio_err, NULL))
+               goto end;
+
        infile=NULL;
        outfile=NULL;
        informat=FORMAT_PEM;