aboutsummaryrefslogtreecommitdiffstats
path: root/lib/crypto/c_src/crypto.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/crypto/c_src/crypto.c')
-rw-r--r--lib/crypto/c_src/crypto.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/crypto/c_src/crypto.c b/lib/crypto/c_src/crypto.c
index 99e5cb1c1f..08c6d4dbc5 100644
--- a/lib/crypto/c_src/crypto.c
+++ b/lib/crypto/c_src/crypto.c
@@ -621,7 +621,8 @@ static int init(ErlNifEnv* env, ERL_NIF_TERM load_info)
res_type_ec_key = enif_open_resource_type(env,NULL,"crypto.EC_KEY",
ec_key_dtor,
- ERL_NIF_RT_CREATE, NULL);
+ ERL_NIF_RT_CREATE|ERL_NIF_RT_TAKEOVER,
+ NULL);
#endif
init_digest_types(env);