From: Dr. Stephen Henson Date: Sat, 27 Mar 2010 18:28:13 +0000 (+0000) Subject: PR: 1813 X-Git-Tag: OpenSSL_1_0_0~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=348620c7ac710ab22cffc3d8d474d4b62040e0d4;p=openssl PR: 1813 Submitted by: Torsten Hilbrich Fix memory leak when engine name cannot be loaded. --- 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;