Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/cares_wrap.cc')
-rw-r--r--src/cares_wrap.cc5
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;