1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* *.c (*_memsize): do not check ptr.

NULL checking is finished Before call of memsize functions.
  See r52979.




git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52986 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ko1 2015-12-09 00:38:32 +00:00
parent 6a15a37f0b
commit 2f5b8f0529
16 changed files with 60 additions and 79 deletions

View file

@ -68,7 +68,7 @@ mutex_free(void *ptr)
static size_t
mutex_memsize(const void *ptr)
{
return ptr ? sizeof(rb_mutex_t) : 0;
return sizeof(rb_mutex_t);
}
static const rb_data_type_t mutex_data_type = {