Fix memory leak.
This commit is contained in:
parent
cca28b291c
commit
bdae099862
1 changed files with 5 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue