diff options
author | Jean Boussier <byroot@ruby-lang.org> | 2023-02-10 10:31:30 +0100 |
---|---|---|
committer | Jean Boussier <jean.boussier@gmail.com> | 2023-02-13 17:08:21 +0100 |
commit | 7ddcee5928d8a98337077d5a5ee61136ec84a993 (patch) | |
tree | 638966b4af636eabcc137153b1a2be9ad433675e /marshal.c | |
parent | bc6e587e86a4a4a46af3b1c2fbe1ff3b399735a6 (diff) |
Marshal.load: also freeze extended objects
[Bug #19427]
The `proc` wouldn't be called either, that fixes both.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/7284
Diffstat (limited to 'marshal.c')
-rw-r--r-- | marshal.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1865,6 +1865,7 @@ r_object_for(struct load_arg *arg, bool partial, int *ivp, VALUE extmod, int typ rb_extend_object(v, m); } } + v = r_leave(v, arg, partial); } break; |