Skip to content

Commit

Permalink
src: fix task release in cares_wrap.cc
Browse files Browse the repository at this point in the history
PR-URL: #26815
Reviewed-By: Refael Ackermann <refack@gmail.com>
  • Loading branch information
gengjiawen authored and targos committed Mar 29, 2019
1 parent 32cc3af commit 6bf92f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cares_wrap.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 6bf92f1

Please sign in to comment.