Skip to content

Commit d45e845

Browse files
committed
fix: declare v_exn
Signed-off-by: Rudi Grinberg <[email protected]>
1 parent d8a5ef0 commit d45e845

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/fsevents/fsevents_stubs.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,14 @@ CAMLprim value dune_fsevents_runloop_current(value v_unit) {
3333

3434
CAMLprim value dune_fsevents_runloop_run(value v_runloop) {
3535
CAMLparam1(v_runloop);
36+
CAMLlocal1(v_exn);
3637
dune_runloop *runloop = (dune_runloop *)Nativeint_val(v_runloop);
3738
caml_release_runtime_system();
3839
CFRunLoopRun();
3940
caml_acquire_runtime_system();
4041
caml_remove_global_root(&runloop->v_exn);
4142
v_exn = runloop->v_exn;
42-
calm_stat_free(runloop);
43+
caml_stat_free(runloop);
4344
if (v_exn != Val_unit)
4445
caml_raise(v_exn);
4546
CAMLreturn(Val_unit);

0 commit comments

Comments
 (0)