Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Catch::LeakDetector: added cleanup call to destructor #1411

Merged
merged 1 commit into from
Oct 18, 2018
Merged

Catch::LeakDetector: added cleanup call to destructor #1411

merged 1 commit into from
Oct 18, 2018

Conversation

JoeyGrajciar
Copy link
Contributor

simple code with provided main function which just returns 0
leaks memory due to fact that singletons are not cleaned up

running valgrind on such simple application reports that 752 bytes
are still available in 11 blocks

this commit adds destructor to Catch::LeakDetector which calls
Catch::cleanUp()

Description

There is already existing #1063 which added the destructor but seems to be abandoned.

GitHub Issues

simple code with provided main function which just returns 0
leaks memory due to fact that singletons are not cleaned up

running valgrind on such simple application reports that 752 bytes
are still available in 11 blocks

this commit adds destructor to Catch::LeakDetector which calls
Catch::cleanUp()
@codecov
Copy link

codecov bot commented Oct 17, 2018

Codecov Report

Merging #1411 into master will increase coverage by 0.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #1411      +/-   ##
==========================================
+ Coverage   80.22%   80.23%   +0.01%     
==========================================
  Files         120      120              
  Lines        3392     3394       +2     
==========================================
+ Hits         2721     2723       +2     
  Misses        671      671

@horenmar
Copy link
Member

This looks fine enough.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants