Fixed a memory leak in get_class
Merge pull request #2 from HarveyHunt/master

Fixed a memory leak in get_class