File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 16
16
- if : ${{ startsWith(matrix.os, 'macos') }}
17
17
run : brew install libomp
18
18
- run : bundle exec rake vendor:all
19
- - run : bundle exec rake test
19
+ - run : sudo apt-get update && sudo apt-get install valgrind
20
+ - run : valgrind --leak-check=yes bundle exec rake test
Original file line number Diff line number Diff line change @@ -158,7 +158,7 @@ def create_dataset(x, y = nil)
158
158
end
159
159
160
160
def str_ptr ( arr )
161
- ptr = Fiddle ::Pointer . malloc ( Fiddle ::SIZEOF_VOIDP * arr . size , Fiddle :: RUBY_FREE )
161
+ ptr = Fiddle ::Pointer . malloc ( Fiddle ::SIZEOF_VOIDP * arr . size )
162
162
str_ptrs = arr . map { |v | Fiddle ::Pointer [ "#{ v } \x00 " ] }
163
163
str_ptrs . each_with_index do |v , i |
164
164
ptr [ i * Fiddle ::SIZEOF_VOIDP , Fiddle ::SIZEOF_VOIDP ] = v . ref
You can’t perform that action at this time.
0 commit comments