Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
[ci] [R-package] Fix memory leaks found by valgrind #3443
[ci] [R-package] Fix memory leaks found by valgrind #3443
Changes from 46 commits
52a981e
d8dff36
6af267d
7718339
5fcd2fe
1d3762e
3f217a3
f5729ed
e80b68d
d8b9a84
4f20e36
1c65707
53f82f5
5828e43
74676c3
7a91f40
e64183c
23290db
4355c75
3179f4e
bd53bfe
d53c9eb
e4fff30
b7b0bf3
ec77314
78a66c8
70caf8e
ec6ee58
24b9513
e93db3a
d621d5f
c0e9219
a45ec0a
650cb32
ba3ee79
1daf3c0
e5c6bf1
d91c9ff
a55801c
ef74a8f
432bf22
3a24bb6
5bcf90b
7221adb
a024e5c
a1e2b59
9e3d97a
767938b
11874c7
4e30578
5f888a9
e9343f1
66aeb47
25d2ff9
c1eeb58
77f2c81
e6dfaca
6fb20eb
020ffae
06f783e
350e330
5dd74aa
2164ba8
14cb184
a35ffb3
af1bbf7
a2faca1
d865182
d7e7a0c
9526762
cbbbd4d
b946388
b03d863
974ab17
44afb1d
cefb3dd
d8856bd
0374e87
e9c46aa
5d435f6
265400c
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
@guolinke @jameslamb I just noticed that
std::move
here produces the following compilation warnings:I wonder is there any way to avoid both valgrind error and compilation warning?
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.
huh I'm not sure! Think @guolinke will have to answer this one
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.
In c++11, the compliers should be able to auto move the "local" object by
return
call, so it is safe to removestd::move
.However, it seems apple clang doesn't have this optimization...
To fix the warning, we can remove these std::move
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.
I also saw these warnings with ordinary Clang on Ubuntu.