diff --git a/ruby/ext/google/protobuf_c/repeated_field.c b/ruby/ext/google/protobuf_c/repeated_field.c index 88e8434f0a89..5ff3c769ac91 100644 --- a/ruby/ext/google/protobuf_c/repeated_field.c +++ b/ruby/ext/google/protobuf_c/repeated_field.c @@ -551,6 +551,7 @@ VALUE RepeatedField_plus(VALUE _self, VALUE list) { RepeatedField* dupped = ruby_to_RepeatedField(dupped_); upb_array *dupped_array = RepeatedField_GetMutable(dupped_); upb_arena* arena = Arena_get(dupped->arena); + Arena_fuse(list_rptfield->arena, arena); int size = upb_array_size(list_rptfield->array); int i;