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

darnir / wget2 / 154 / 1
66%
master: 67%

Build:
Build:
LAST BUILD BRANCH: tmp-fix-copyrights
DEFAULT BRANCH: master
Ran 30 Mar 2017 07:27PM UTC
Files 67
Run time 4s
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

30 Mar 2017 07:12PM UTC coverage: 65.93%. First build
154.1

push

travis-ci

darnir
Fix memory leak in test-metalink

This memory leak was particularly interesting. Valgrind did *NOT* report
the leak at all while GCC's Memory Sanitizer did, leading me to believe
that this is a bug in the memory sanitizer. However, the memory leak
does indeed exist and Valgrind misses it.

The leak happens because the url->body is always statically allocated.
_If_ we replace the {{port}} in the body, the new string is dynamically
allocated and stored in the struct. However, if the user stores a
dynamically allocated memory in the struct, then we replace it during
wget_test_start_server leaking that memory.

* tests/test-metalink.c: Explicitly deallocate dynamically allocated
memory

5904 of 8955 relevant lines covered (65.93%)

3338.98 hits per line

Source Files on job 154.1
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 154
  • Travis Job 154.1
  • 864c3ed5 on github
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