summaryrefslogtreecommitdiff
path: root/include/ruby/internal/has/cpp_attribute.h
diff options
context:
space:
mode:
authorJean Boussier <byroot@ruby-lang.org>2023-11-10 11:53:50 +0100
committerJean Boussier <jean.boussier@gmail.com>2023-11-10 15:56:42 +0100
commita9f45aac6e2389ff826987771198729441bf6a85 (patch)
tree717a4d5f5b31a2fccadae4ec75695c4e93285e04 /include/ruby/internal/has/cpp_attribute.h
parenta2442e91fded557fe79a49a86b84565ee66e34cc (diff)
rb_data_free: Fix freeing embedded TypedData
The previous implementation was using the pointer given by `DATA_PTR` in all cases. But in the case of an embedded TypedData, that pointer is garbage, we need to use RTYPEDDATA_GET_DATA to get the proper data pointer. Co-Authored-By: Étienne Barrié <etienne.barrie@gmail.com>
Diffstat (limited to 'include/ruby/internal/has/cpp_attribute.h')
0 files changed, 0 insertions, 0 deletions