aboutsummaryrefslogtreecommitdiffstats
path: root/tool/vcs.rb
diff options
context:
space:
mode:
authorUrabe, Shyouhei <shyouhei@ruby-lang.org>2019-04-26 18:59:26 +0900
committerUrabe, Shyouhei <shyouhei@ruby-lang.org>2019-04-29 21:52:44 +0900
commitf95f07dad30a80b7e3eb4b2838ca4311d2822764 (patch)
tree8429bf10ff496c05aff318ee48cc19279777b4f5 /tool/vcs.rb
parent34e1079aef81d108890fb167d7df69960e994ff5 (diff)
downloadruby-f95f07dad30a80b7e3eb4b2838ca4311d2822764.tar.gz
avoid passing NULL to memset
`GC::Profiler.enable; GC::Profiler.clear` tries to clear objspace->profile.records but it has never been allocated before. Thus the MEMCPY took NULL argument before this changeset. The objspace->profile.records is allocated appropriately elsewhere. Why not juts free it if any? That should work.
Diffstat (limited to 'tool/vcs.rb')
0 files changed, 0 insertions, 0 deletions