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

darnir / wget2 / 155
67%

Build:
DEFAULT BRANCH: master
Ran 30 Mar 2017 07:27PM UTC
Jobs 1
Files 67
Run time 3s
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

pending completion
155

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%)

3337.82 hits per line

Jobs
ID Job ID Ran Files Coverage
1 155.1 30 Mar 2017 07:27PM UTC 0
65.93
Travis Job 155.1
Source Files on build 155
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #155
  • 864c3ed5 on github
  • Prev Build on master (#153)
  • Next Build on master (#156)
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