提交 bdae0998 编写于 作者: B Ben Laurie

Fix memory leak.

上级 cca28b29
......@@ -443,7 +443,11 @@ err:
if (line != NULL) *line=eline;
sprintf(btmp,"%ld",eline);
ERR_add_error_data(2,"line ",btmp);
if ((h != conf->data) && (conf->data != NULL)) CONF_free(conf->data);
if ((h != conf->data) && (conf->data != NULL))
{
CONF_free(conf->data);
conf->data=NULL;
}
if (v != NULL)
{
if (v->name != NULL) OPENSSL_free(v->name);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册