From 1eda14b44f4c1a958fbe2e9c4a6695eb08bd27c3 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Sat, 27 Mar 2010 18:28:24 +0000 Subject: [PATCH] PR: 1813 Submitted by: Torsten Hilbrich Fix memory leak when engine name cannot be loaded. --- crypto/engine/eng_list.c | 1 + 1 file changed, 1 insertion(+) diff --git a/crypto/engine/eng_list.c b/crypto/engine/eng_list.c index bd511944ba..fa2ab9732a 100644 --- a/crypto/engine/eng_list.c +++ b/crypto/engine/eng_list.c @@ -412,6 +412,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; -- 2.25.1