projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa9b502
)
PR: 1813
author
Dr. Stephen Henson
<steve@openssl.org>
Sat, 27 Mar 2010 18:28:24 +0000
(18:28 +0000)
committer
Dr. Stephen Henson
<steve@openssl.org>
Sat, 27 Mar 2010 18:28:24 +0000
(18:28 +0000)
Submitted by: Torsten Hilbrich <torsten.hilbrich@secunet.com>
Fix memory leak when engine name cannot be loaded.
crypto/engine/eng_list.c
patch
|
blob
|
history
diff --git
a/crypto/engine/eng_list.c
b/crypto/engine/eng_list.c
index bd511944bafdabbfabf34b0e96adced573cf9d97..fa2ab9732ae638c9c9df37056516a024e7807fbf 100644
(file)
--- 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;