diff options
Diffstat (limited to 'src/cares_wrap.cc')
-rw-r--r-- | src/cares_wrap.cc | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/cares_wrap.cc b/src/cares_wrap.cc index 683d9c9728b..aeb525b33e7 100644 --- a/src/cares_wrap.cc +++ b/src/cares_wrap.cc @@ -296,11 +296,6 @@ void node_ares_task::MemoryInfo(MemoryTracker* tracker) const { node_ares_task* ares_task_create(ChannelWrap* channel, ares_socket_t sock) { auto task = new node_ares_task(); - if (task == nullptr) { - /* Out of memory. */ - return nullptr; - } - task->channel = channel; task->sock = sock; |