Skip to content

Commit 99a2f0f

Browse files
committed
update CMakeLists.txt and uv_coro.c
1 parent ae7fcf3 commit 99a2f0f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ find_package(raii QUIET)
2626
if(NOT raii_FOUND)
2727
FetchContent_Declare(raii
2828
URL https://github.com/zelang-dev/c-raii/archive/refs/heads/main.zip
29-
URL_MD5 e1d71b156c4a324bd312d9ae3ea87e34
29+
URL_MD5 f84394c9118f04b38854a8851542c7fc
3030
)
3131
FetchContent_MakeAvailable(raii)
3232
endif()

src/uv_coro.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,6 @@ static void write_cb(uv_write_t *req, int status) {
433433
}
434434

435435
coro_interrupt_complete(co, nullptr, status, true, false);
436-
uv_arguments_free(uv);
437436
}
438437

439438
static void tls_write_cb(uv_tls_t *tls, int status) {
@@ -744,6 +743,7 @@ static void_t uv_init(params_t uv_args) {
744743
((uv_tls_t *)stream)->uv_args = uv;
745744
result = uv_tls_write((uv_tls_t *)stream, &uv->bufs, tls_write_cb);
746745
} else {
746+
defer((func_t)uv_arguments_free, uv);
747747
req = calloc_local(1, sizeof(uv_write_t));
748748
result = uv_write((uv_write_t *)req, streamer(stream), &uv->bufs, 1, write_cb);
749749
}

0 commit comments

Comments
 (0)