ext/ruby_prof/rp_method.c in ruby-prof-0.14.2 vs ext/ruby_prof/rp_method.c in ruby-prof-0.15.0
- old
+ new
@@ -102,14 +102,14 @@
}
static VALUE
full_name(VALUE klass, ID mid)
{
- VALUE result = klass_name(klass);
- rb_str_cat2(result, "#");
- rb_str_append(result, method_name(mid));
+ VALUE result = rb_str_dup(klass_name(klass));
+ rb_str_cat2(result, "#");
+ rb_str_append(result, method_name(mid));
- return result;
+ return result;
}
void
method_key(prof_method_key_t* key, VALUE klass, ID mid)
{