aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/dso/dso_lib.c
diff options
context:
space:
mode:
authorFdaSilvaYY <fdasilvayy@gmail.com>2016-01-21 23:10:29 +0100
committerKurt Roeckx <kurt@roeckx.be>2016-01-24 00:47:41 +0100
commit98637bd30e06529e52b5f83bde32c8bd2d620e06 (patch)
tree6da7e6cb15812fadb4d54d0207150ecec2708b66 /crypto/dso/dso_lib.c
parent3eb70c5ebae6f2b5fd6034ed5af14910c8479688 (diff)
downloadopenssl-98637bd30e06529e52b5f83bde32c8bd2d620e06.tar.gz
Fix two possible leaks.
Signed-off-by: Kurt Roeckx <kurt@roeckx.be> Reviewed-by: Rich Salz <rsalz@openssl.org> GH: #580
Diffstat (limited to 'crypto/dso/dso_lib.c')
-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 cc29ca4e4d..dfa738aa0a 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;
}