Free engine on error.

Reviewed-by: Matt Caswell <matt@openssl.org>
This commit is contained in:
Ben Laurie
2016-04-16 05:33:24 +01:00
parent 04630522c2
commit 913954768f

View File

@@ -1671,6 +1671,9 @@ void engine_load_cryptodev_int(void)
cryptodev_rsa_nocrt_mod_exp);
}
}
} else {
ENGINE_free(engine);
return;
}
#ifndef OPENSSL_NO_DSA
@@ -1708,6 +1711,9 @@ void engine_load_cryptodev_int(void)
cryptodev_dh_compute_key);
}
}
} else {
ENGINE_free(engine);
return;
}
#endif