Skip to content
Permalink
Browse files

src: fix task release in cares_wrap.cc

PR-URL: #26815
Reviewed-By: Refael Ackermann <refack@gmail.com>
  • Loading branch information...
gengjiawen authored and targos committed Mar 20, 2019
1 parent c969731 commit 6bfb17f52872826d88141ae6ebe61df009535cda
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/cares_wrap.cc
@@ -307,7 +307,7 @@ node_ares_task* ares_task_create(ChannelWrap* channel, ares_socket_t sock) {
if (uv_poll_init_socket(channel->env()->event_loop(),
&task->poll_watcher, sock) < 0) {
/* This should never happen. */
free(task);
delete task;
return nullptr;
}

0 comments on commit 6bfb17f

Please sign in to comment.
You can’t perform that action at this time.