Don't unload executable because it might be needed in the future

This commit is contained in:
Josh Nussbaum
2016-12-03 03:53:05 -05:00
parent 91b03d57a2
commit c2cc656c5c

View File

@@ -33,8 +33,6 @@ static void call(char *library, char *function, int argc, ffi_type **args, void
if (ffi_prep_cif(&cif, FFI_DEFAULT_ABI, argc, returnType, args) == FFI_OK) { if (ffi_prep_cif(&cif, FFI_DEFAULT_ABI, argc, returnType, args) == FFI_OK) {
ffi_call(&cif, (void*)fn, &returnValue, values); ffi_call(&cif, (void*)fn, &returnValue, values);
} }
dlclose(handle);
} }
static ERL_NIF_TERM nif_call(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[]) static ERL_NIF_TERM nif_call(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[])