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

c-ares / c-ares / 23715018034
92%

Build:
DEFAULT BRANCH: main
Ran 29 Mar 2026 05: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 05:39PM UTC coverage: 91.703% (-0.008%) from 91.711%
23715018034

push

github

web-flow
Fix memory leak of bucket->key in ares_htable_dict_insert error path (#1105)

Fix https://github.com/c-ares/c-ares/issues/1104:

When ares_htable_dict_insert() fails after duplicating the key (via
ares_strdup at line 115) but before successful hash table insertion, the
fail label frees bucket->val and bucket but not bucket->key, leaking the
duplicated key string.

Add the missing ares_free(bucket->key) to the error cleanup.

Signed-off-by: Kaixuan Li (@MarkLee131)

0 of 1 new or added line in 1 file covered. (0.0%)

3 existing lines in 1 file now uncovered.

22767 of 24827 relevant lines covered (91.7%)

12916.75 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
84.95
-0.92% src/lib/dsa/ares_htable_dict.c

Coverage Regressions

Lines Coverage ∆ File
3
62.18
-0.55% src/lib/record/ares_dns_mapping.c
Jobs
ID Job ID Ran Files Coverage
1 23715018034.1 29 Mar 2026 05:41PM UTC 935
61.29
GitHub Action Run
Source Files on build 23715018034
  • Tree
  • List 177
  • Changed 58
  • Source Changed 0
  • Coverage Changed 58
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • a34fbfb4 on github
  • Prev Build on main (#23713475629)
  • Next Build on main (#23715033830)
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