projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
72d75ee
)
Fix memory leak.
author
Dr. Stephen Henson
<steve@openssl.org>
Wed, 12 May 2004 17:53:22 +0000
(17:53 +0000)
committer
Dr. Stephen Henson
<steve@openssl.org>
Wed, 12 May 2004 17:53:22 +0000
(17:53 +0000)
apps/x509.c
patch
|
blob
|
history
diff --git
a/apps/x509.c
b/apps/x509.c
index 710a46fcd4e9c313c9757d6bb5222ed44fa7fce4..5f5542a8298827117ff516baf4df9ab65167c5ae 100644
(file)
--- 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;