1
0
mirror of https://github.com/libuv/libuv synced 2025-03-28 21:13:16 +00:00

win: fix leak processing fs event

Fixes: https://github.com/libuv/libuv/pull/4376#issuecomment-2544728609
This commit is contained in:
Saúl Ibarra Corretgé 2024-12-16 13:41:36 +01:00
parent beebf02cf6
commit ec5a4b54f7

View File

@ -579,6 +579,8 @@ void uv__process_fs_event_req(uv_loop_t* loop, uv_req_t* req,
info.DeletePending) { info.DeletePending) {
uv__convert_utf16_to_utf8(handle->dirw, -1, &filename); uv__convert_utf16_to_utf8(handle->dirw, -1, &filename);
handle->cb(handle, filename, UV_RENAME, 0); handle->cb(handle, filename, UV_RENAME, 0);
uv__free(filename);
filename = NULL;
} else { } else {
handle->cb(handle, NULL, 0, uv_translate_sys_error(err)); handle->cb(handle, NULL, 0, uv_translate_sys_error(err));
} }