From bdae099862cbb0e4cb8919d99bb8555a3c44c2ac Mon Sep 17 00:00:00 2001 From: Ben Laurie Date: Fri, 18 Jan 2002 11:32:30 +0000 Subject: [PATCH] Fix memory leak. --- crypto/conf/conf_def.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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); -- 2.25.1