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

c-ares / c-ares / #1301
80%
main: 92%

Build:
Build:
LAST BUILD BRANCH: b-mac-gcc
DEFAULT BRANCH: main
Ran 22 Jul 2024 08:01PM UTC
Jobs 1
Files 156
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

22 Jul 2024 07:56PM UTC coverage: 80.594% (+0.06%) from 80.533%
#1301

push

travis-ci

bradh352
mem leak due to `ares__hosts_entry_to_hostent()` allocation strategy (#824)

`ares__hosts_entry_to_hostent()` would allocate a separate buffer for
each address, but `ares_free_hostent()` expects a single allocation to
hold all addresses.

This PR fixes this issue and simplifies the logic by using the
already-existing `ares__addrinfo2hostent()` to write the hostent instead
of coming up with yet another way to write the structure.

Fixes #823
Fix By: Brad House (@bradh352)

15 of 22 new or added lines in 1 file covered. (68.18%)

8572 of 10636 relevant lines covered (80.59%)

3865.72 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
7
85.92
1.94% src/lib/ares__hosts_file.c
Jobs
ID Job ID Ran Files Coverage
1 #1301.1 22 Jul 2024 08:01PM UTC 156
80.59
Source Files on build #1301
  • Tree
  • List 156
  • Changed 33
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 6228171e on github
  • Prev Build on v1.29
  • Next Build on v1.29
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

© 2025 Coveralls, Inc