提交 8652d1c2 编写于 作者: B Bodo Möller

Memory leak.

上级 4a6222d7
...@@ -158,6 +158,7 @@ bad: ...@@ -158,6 +158,7 @@ bad:
goto end; goto end;
} }
BIO_free(in); BIO_free(in);
in = NULL;
out=BIO_new(BIO_s_file()); out=BIO_new(BIO_s_file());
if (out == NULL) goto end; if (out == NULL) goto end;
...@@ -193,6 +194,7 @@ bad: ...@@ -193,6 +194,7 @@ bad:
end: end:
if (ret != 0) if (ret != 0)
ERR_print_errors(bio_err); ERR_print_errors(bio_err);
if (in != NULL) BIO_free(in);
if (out != NULL) BIO_free(out); if (out != NULL) BIO_free(out);
if (dsa != NULL) DSA_free(dsa); if (dsa != NULL) DSA_free(dsa);
EXIT(ret); EXIT(ret);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册