From d94b22235ff7c07834c259046346efd3f0ea42b8 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Wed, 12 May 2004 17:53:22 +0000 Subject: [PATCH] Fix memory leak. --- apps/x509.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/apps/x509.c b/apps/x509.c index 710a46fcd..5f5542a82 100644 --- a/apps/x509.c +++ b/apps/x509.c @@ -1067,13 +1067,6 @@ static ASN1_INTEGER *x509_load_serial(char *CAfile, char *serialfile, int create } else BUF_strlcpy(buf,serialfile,len); - serial=BN_new(); - bs=ASN1_INTEGER_new(); - if ((serial == NULL) || (bs == NULL)) - { - ERR_print_errors(bio_err); - goto end; - } serial = load_serial(buf, create, NULL); if (serial == NULL) goto end;