Skip to content

Commit

Permalink
No need to uv_ref() prior to uv_close()
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperisager committed Jan 2, 2025
1 parent 5152801 commit 90fda5a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/runtime.c
Original file line number Diff line number Diff line change
Expand Up @@ -1091,11 +1091,7 @@ bare_runtime_teardown(bare_runtime_t *runtime, int *exit_code) {
assert(err == 0);

#define V(signal) \
{ \
uv_handle_t *handle = (uv_handle_t *) &runtime->signals.signal; \
uv_ref(handle); \
uv_close(handle, bare_runtime_on_handle_close); \
}
uv_close((uv_handle_t *) &runtime->signals.signal, bare_runtime_on_handle_close);

V(suspend)
V(resume)
Expand Down

0 comments on commit 90fda5a

Please sign in to comment.