Skip to content

Commit 22f5324

Browse files
committed
fix: segfault due to use unsafe env
1 parent 1f93752 commit 22f5324

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

c_src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@ erlfdb_future_cancel(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[])
591591
future = (ErlFDBFuture*) res;
592592

593593
enif_mutex_lock(future->lock);
594-
594+
future->pid_env = env;
595595
future->cancelled = true;
596596
fdb_future_cancel(future->future);
597597

0 commit comments

Comments
 (0)