Project

General

Profile

« Previous | Next » 

Revision f95f07da

Added by shyouhei (Shyouhei Urabe) almost 5 years ago

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.