Fix two possible leaks.
[openssl.git] / crypto / dso / dso_lib.c
index cc29ca4e4d93bde1b4c22dfc8b3d302a10e36112..dfa738aa0a7e812a168a4bcc9eea299fc41ee4a4 100644 (file)
@@ -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;
     }