diff options
| author | Jean Boussier <byroot@ruby-lang.org> | 2023-11-10 11:53:50 +0100 |
|---|---|---|
| committer | Jean Boussier <jean.boussier@gmail.com> | 2023-11-10 15:56:42 +0100 |
| commit | a9f45aac6e2389ff826987771198729441bf6a85 (patch) | |
| tree | 717a4d5f5b31a2fccadae4ec75695c4e93285e04 /include/ruby/internal/has | |
| parent | a2442e91fded557fe79a49a86b84565ee66e34cc (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')
0 files changed, 0 insertions, 0 deletions
