Fixed a memory leak in get_class

Again, extra line changes due to stripping whitespace.