Refactor obj_free() in gc.c
Merge pull request #2509 from suzukaze/refactor-gc

Refactor obj_free() in gc.c