Skip to content

Commit 2ccc20f

Browse files
Madeleine Goebelbdw
authored andcommitted
Fix placement of null assignment
1 parent 6bc095d commit 2ccc20f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/io/eventloop.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,11 +292,13 @@ void MVM_io_eventloop_destroy(MVMThreadContext *tc) {
292292

293293
if (instance->event_loop) {
294294
uv_close((uv_handle_t*)instance->event_loop_wakeup, NULL);
295-
instance->event_loop_wakeup = NULL;
296295

297296
/* Not sure we can always do this */
298297
uv_loop_close(instance->event_loop);
298+
299299
MVM_free(instance->event_loop_wakeup);
300+
instance->event_loop_wakeup = NULL;
301+
300302
MVM_free(instance->event_loop);
301303
instance->event_loop = NULL;
302304
}

0 commit comments

Comments
 (0)