diff options
author | Chris Seaton <chris@chrisseaton.com> | 2020-05-19 00:12:47 +0100 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-05-23 14:34:07 +0900 |
commit | 3015a7aae7ddc9b63149df34b1f12366e07a9563 (patch) | |
tree | d8717bceae57a47f2257f8701c02423d51dab62f /test/fiddle/test_c_union_entity.rb | |
parent | 24b615e82ee327a9ac583937de746ba12dde2d6a (diff) | |
download | ruby-3015a7aae7ddc9b63149df34b1f12366e07a9563.tar.gz |
[ruby/fiddle] Improve documentation on how to correctly free memory and free memory in tests (#33)
https://github.com/ruby/fiddle/commit/e59cfd708a
Diffstat (limited to 'test/fiddle/test_c_union_entity.rb')
-rw-r--r-- | test/fiddle/test_c_union_entity.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/fiddle/test_c_union_entity.rb b/test/fiddle/test_c_union_entity.rb index 5727a20e3b..9310084733 100644 --- a/test/fiddle/test_c_union_entity.rb +++ b/test/fiddle/test_c_union_entity.rb @@ -21,7 +21,7 @@ module Fiddle end def test_set_ctypes - union = CUnionEntity.malloc [TYPE_INT, TYPE_LONG] + union = CUnionEntity.malloc [TYPE_INT, TYPE_LONG], Fiddle::RUBY_FREE union.assign_names %w[int long] # this test is roundabout because the stored ctypes are not accessible |