aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/engine/eng_list.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2010-03-27 18:28:02 +0000
committerDr. Stephen Henson <steve@openssl.org>2010-03-27 18:28:02 +0000
commitac495542a663b241a598e9bd13bf8d2d7b8720be (patch)
tree973337c2bfed63df4d612b8dc084484c587b80bc /crypto/engine/eng_list.c
parent085e5f48594c70f0d9bf25cb065804ad65cbea79 (diff)
downloadopenssl-ac495542a663b241a598e9bd13bf8d2d7b8720be.tar.gz
PR: 1813
Submitted by: Torsten Hilbrich <torsten.hilbrich@secunet.com> Fix memory leak when engine name cannot be loaded.
Diffstat (limited to 'crypto/engine/eng_list.c')
-rw-r--r--crypto/engine/eng_list.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/engine/eng_list.c b/crypto/engine/eng_list.c
index 66a52b89e0..27846edb1e 100644
--- a/crypto/engine/eng_list.c
+++ b/crypto/engine/eng_list.c
@@ -413,6 +413,7 @@ ENGINE *ENGINE_by_id(const char *id)
return iterator;
}
notfound:
+ ENGINE_free(iterator);
ENGINEerr(ENGINE_F_ENGINE_BY_ID,ENGINE_R_NO_SUCH_ENGINE);
ERR_add_error_data(2, "id=", id);
return NULL;