diff --git a/src/cares_wrap.cc b/src/cares_wrap.cc index b90b2186959b2e..cf945cd7812d07 100644 --- a/src/cares_wrap.cc +++ b/src/cares_wrap.cc @@ -158,7 +158,7 @@ class ChannelWrap : public AsyncWrap { } inline node_ares_task_list* task_list() { return &task_list_; } - size_t self_size() const override { return sizeof(this); } + size_t self_size() const override { return sizeof(*this); } static void AresTimeout(uv_timer_t* handle);