projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Memory leak.
[openssl.git]
/
apps
/
gendsa.c
diff --git
a/apps/gendsa.c
b/apps/gendsa.c
index 44d2b42a0579213b0f6d8301e6c22142fea91e53..49ae0a06760487d12b2f690e84ea2ebb6ed7b58f 100644
(file)
--- a/
apps/gendsa.c
+++ b/
apps/gendsa.c
@@
-158,6
+158,7
@@
bad:
goto end;
}
BIO_free(in);
goto end;
}
BIO_free(in);
+ in = NULL;
out=BIO_new(BIO_s_file());
if (out == NULL) goto end;
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);
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);
if (out != NULL) BIO_free(out);
if (dsa != NULL) DSA_free(dsa);
EXIT(ret);