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
Memory leaks fixes for unit tests #4036
Conversation
@@ -43,6 +43,7 @@ namespace shogun { | |||
auto* cast = dynamic_cast<T*>(object); | |||
if (!cast) | |||
{ | |||
delete object; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Catch!
looks good! |
Codecov Report
@@ Coverage Diff @@
## develop #4036 +/- ##
===========================================
- Coverage 56.13% 56.13% -0.01%
===========================================
Files 1361 1361
Lines 94254 94259 +5
===========================================
+ Hits 52912 52914 +2
- Misses 41342 41345 +3
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ace!
* [ProgressBar] Fix uninitialized variables. * [Valgrind] Fix memory leak inside create_object method. * [LDA] Fix memory leak inside LDA. * [KernelPCA] Fix memory leak inside unit test. * [FisherLDA] Fix memory leak inside unit test (unit-FLDATest). * [KRRNystrom] Fix memory leak inside unit test (unit-KRRNystrom). * [clang-format] Fix style.
This patch fixes some memory leaks discovered by valgrind inside unit tests.