From: Dr. Stephen Henson Date: Wed, 12 May 2004 17:53:22 +0000 (+0000) Subject: Fix memory leak. X-Git-Tag: OpenSSL_0_9_7e~110 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d94b22235ff7c07834c259046346efd3f0ea42b8;p=openssl Fix memory leak. --- diff --git a/apps/x509.c b/apps/x509.c index 710a46fcd4..5f5542a829 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;