PR: 1813
Submitted by: Torsten Hilbrich <torsten.hilbrich@secunet.com> Fix memory leak when engine name cannot be loaded.
This commit is contained in:
parent
aa9b502619
commit
1eda14b44f
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue