diff --git a/src/node_perf.cc b/src/node_perf.cc index 155f1e66e46bb9..a3b428bac94fc4 100644 --- a/src/node_perf.cc +++ b/src/node_perf.cc @@ -196,7 +196,9 @@ void PerformanceGCCallback(uv_async_t* handle) { cleanup: delete data; - auto closeCB = [](uv_handle_t* handle) { delete handle; }; + auto closeCB = [](uv_handle_t* handle) { + delete reinterpret_cast(handle); + }; uv_close(reinterpret_cast(handle), closeCB); }