diff options
author | Ben Laurie <ben@openssl.org> | 2002-01-18 11:32:30 +0000 |
---|---|---|
committer | Ben Laurie <ben@openssl.org> | 2002-01-18 11:32:30 +0000 |
commit | bdae099862cbb0e4cb8919d99bb8555a3c44c2ac (patch) | |
tree | 9c339c961a482b86daba34733bac60197a6017ea /crypto | |
parent | cca28b291c2c097c2006cb372c18b937c976c371 (diff) |
Fix memory leak.
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/conf/conf_def.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/crypto/conf/conf_def.c b/crypto/conf/conf_def.c index 87335a9daa..6d12b40652 100644 --- a/crypto/conf/conf_def.c +++ b/crypto/conf/conf_def.c @@ -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); |