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

darnir / wget2
66%
master: 67%

Build:
Build:
LAST BUILD BRANCH: tmp-fix-copyrights
DEFAULT BRANCH: master
Repo Added 25 Sep 2016 12:41PM UTC
Files 97
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

LAST BUILD ON BRANCH fix-test-memleak
branch: fix-test-memleak
CHANGE BRANCH
x
Reset
  • fix-test-memleak
  • clang_attrib
  • cov-fixes
  • coveralls-test
  • define-to-enum
  • expand_filenames
  • fix-parse-header
  • fix-progress-http2
  • header-option
  • master
  • new-travis
  • no-config
  • progress-fix
  • progress-tests
  • pure-functions
  • refactor-prog
  • refactor-progressbar
  • timestamping
  • tmp-fix-copyrights
  • tmp-update-configure
  • travis-coveralls
  • travis-msan
  • travis-test
  • wgetapi

pending completion
154

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

Relevant lines Covered
Build:
Build:
8955 RELEVANT LINES 5904 COVERED LINES
3338.98 HITS PER LINE
Source Files on fix-test-memleak
Detailed source file information is not available for this build.

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
154 fix-test-memleak 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... push 30 Mar 2017 07:27PM UTC darnir travis-ci pending completion  
See All Builds (76)
  • Repo 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