• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

c-ares / c-ares / 23720778448
92%

Build:
DEFAULT BRANCH: main
Ran 29 Mar 2026 10:41PM UTC
Jobs 1
Files 177
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

29 Mar 2026 10:38PM UTC coverage: 91.696% (-0.003%) from 91.699%
23720778448

push

github

web-flow
Fix memory leaks on error paths in two functions (#1109)

ares_in_addr_to_sconfig_llist(): Free sconfig before goto fail when
ares_llist_insert_last() fails. The allocated sconfig was never inserted
into the list, so ares_llist_destroy() in the fail label cannot reclaim
it. This matches the pattern already used in the sibling functions
ares_addr_node_to_sconfig_llist() and ares_addrpnode_to_sconfig_llist().

ares_gethostbyname(): Add missing NULL channel guard. Without it, if
channel is NULL, ghbn_arg is allocated and then ares_getaddrinfo()
returns early (its own NULL channel check) without invoking the callback
that would free ghbn_arg. This matches the guards already present in
ares_gethostbyaddr() and ares_getnameinfo().

Signed-off-by: David Hotham (@dimbleby)

2 of 2 new or added lines in 1 file covered. (100.0%)

2 existing lines in 2 files now uncovered.

22770 of 24832 relevant lines covered (91.7%)

12892.14 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
95.73
-0.8% src/lib/ares_gethostbyname.c
1
62.91
0.07% src/lib/record/ares_dns_mapping.c
Jobs
ID Job ID Ran Files Coverage
1 23720778448.1 29 Mar 2026 10:41PM UTC 935
61.29
GitHub Action Run
Source Files on build 23720778448
  • Tree
  • List 177
  • Changed 56
  • Source Changed 0
  • Coverage Changed 56
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • ff9abe46 on github
  • Prev Build on main (#23720746854)
  • Next Build on main (#23720842704)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc