summaryrefslogtreecommitdiffstats
path: root/crypto/dso
diff options
context:
space:
mode:
authorFdaSilvaYY <fdasilvayy@gmail.com>2016-01-29 19:53:28 +0100
committerRich Salz <rsalz@openssl.org>2016-02-27 17:05:32 -0500
commit7bcdf4ef78270c9818fde45816102c1b1288b7c7 (patch)
tree9a71705144d520162e565a47d99e70b9e42e63a7 /crypto/dso
parente9cf5f03666bb82f0184e4f013702d0b164afdca (diff)
Fix two possible leaks
Backport of 98637bd Reviewed-by: Kurt Roeckx <kurt@openssl.org> Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'crypto/dso')
-rw-r--r--crypto/dso/dso_lib.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/dso/dso_lib.c b/crypto/dso/dso_lib.c
index 3312450eae..2beb7c1ba5 100644
--- a/crypto/dso/dso_lib.c
+++ b/crypto/dso/dso_lib.c
@@ -122,6 +122,7 @@ DSO *DSO_new_method(DSO_METHOD *meth)
ret->meth = meth;
ret->references = 1;
if ((ret->meth->init != NULL) && !ret->meth->init(ret)) {
+ sk_void_free(ret->meth_data);
OPENSSL_free(ret);
ret = NULL;
}