summaryrefslogtreecommitdiffstats
path: root/apps/gendsa.c
diff options
context:
space:
mode:
authorBodo Möller <bodo@openssl.org>2000-02-06 03:48:53 +0100
committerBodo Möller <bodo@openssl.org>2000-02-06 03:48:53 +0100
commit8652d1c22ef0be8afde17d44495901ac513063a1 (patch)
tree8a20f6cfec6e1f77eba2bcbf38a50ad1d3cdc5f8 /apps/gendsa.c
parentBN_div bugfix. The q-- loop should not be entered in the n0==d0 case. (diff)
downloadopenssl-8652d1c22ef0be8afde17d44495901ac513063a1.tar.xz
openssl-8652d1c22ef0be8afde17d44495901ac513063a1.zip
Memory leak.
Diffstat (limited to 'apps/gendsa.c')
-rw-r--r--apps/gendsa.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/gendsa.c b/apps/gendsa.c
index 44d2b42a05..49ae0a0676 100644
--- a/apps/gendsa.c
+++ b/apps/gendsa.c
@@ -158,6 +158,7 @@ bad:
goto end;
}
BIO_free(in);
+ in = NULL;
out=BIO_new(BIO_s_file());
if (out == NULL) goto end;
@@ -193,6 +194,7 @@ bad:
end:
if (ret != 0)
ERR_print_errors(bio_err);
+ if (in != NULL) BIO_free(in);
if (out != NULL) BIO_free(out);
if (dsa != NULL) DSA_free(dsa);
EXIT(ret);