projects
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
dda6408
)
fix memory leak
author
Bodo Möller
<bodo@openssl.org>
Thu, 14 Feb 2002 14:21:49 +0000
(14:21 +0000)
committer
Bodo Möller
<bodo@openssl.org>
Thu, 14 Feb 2002 14:21:49 +0000
(14:21 +0000)
apps/ecdsaparam.c
patch
|
blob
|
history
diff --git
a/apps/ecdsaparam.c
b/apps/ecdsaparam.c
index d94ee3a6495171fafd376bf2ae56d0202c0aa488..fd0b327c24cbc54ed58a9cbf849489a8562a2569 100644
(file)
--- a/
apps/ecdsaparam.c
+++ b/
apps/ecdsaparam.c
@@
-170,6
+170,7
@@
int MAIN(int argc, char **argv)
*tmp_6 = NULL, *tmp_7 = NULL;
BN_CTX *ctx = NULL;
EC_POINT *point = NULL;
*tmp_6 = NULL, *tmp_7 = NULL;
BN_CTX *ctx = NULL;
EC_POINT *point = NULL;
+ unsigned char *data = NULL;
apps_startup();
apps_startup();
@@
-376,7
+377,6
@@
bad:
if (C)
{ // TODO : characteristic two
int l, len, bits_p, bits_a, bits_b, bits_x, bits_y, bits_o, bits_c;
if (C)
{ // TODO : characteristic two
int l, len, bits_p, bits_a, bits_b, bits_x, bits_y, bits_o, bits_c;
- unsigned char *data;
if ((tmp_1 = BN_new()) == NULL || (tmp_2 = BN_new()) == NULL ||
(tmp_3 = BN_new()) == NULL || (tmp_4 = BN_new()) == NULL ||
(tmp_5 = BN_new()) == NULL || (tmp_6 = BN_new()) == NULL ||
if ((tmp_1 = BN_new()) == NULL || (tmp_2 = BN_new()) == NULL ||
(tmp_3 = BN_new()) == NULL || (tmp_4 = BN_new()) == NULL ||
(tmp_5 = BN_new()) == NULL || (tmp_6 = BN_new()) == NULL ||
@@
-554,6
+554,7
@@
end:
if (tmp_3) BN_free(tmp_6);
if (tmp_3) BN_free(tmp_7);
if (ctx) BN_CTX_free(ctx);
if (tmp_3) BN_free(tmp_6);
if (tmp_3) BN_free(tmp_7);
if (ctx) BN_CTX_free(ctx);
+ if (data) OPENSSL_free(data);
apps_shutdown();
EXIT(ret);
}
apps_shutdown();
EXIT(ret);
}