Skip to content

Commit

Permalink
remove debug prints and fix unrelated Container test leak
Browse files Browse the repository at this point in the history
  • Loading branch information
kylebevans committed Mar 13, 2021
1 parent 08de712 commit 7eae6d8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 0 additions & 3 deletions src/lib/ares_data.c
Original file line number Diff line number Diff line change
Expand Up @@ -145,20 +145,17 @@ void ares_free_data(void *dataptr)

case ARES_DATATYPE_CNS_REPLY:

printf("free ns\n");
if (ptr->data.cns_reply.next)
next_data = ptr->data.cns_reply.next;
if (ptr->data.cns_reply.host)
{
printf("free host\n");
ares_free(ptr->data.cns_reply.host);
}
break;

default:
return;
}
printf("free ptr\n");
ares_free(ptr);
dataptr = next_data;
}
Expand Down
1 change: 1 addition & 0 deletions test/ares-test-init.cc
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,7 @@ CONTAINED_TEST_F(LibraryTest, ContainerResolvConfNotReadable,
MakeUnreadable hide("/etc/resolv.conf");
// Unavailable /etc/resolv.conf falls back to defaults
EXPECT_EQ(ARES_SUCCESS, ares_init(&channel));
ares_destroy(channel);
return HasFailure();
}
CONTAINED_TEST_F(LibraryTest, ContainerNsswitchConfNotReadable,
Expand Down

0 comments on commit 7eae6d8

Please sign in to comment.