diff --git a/src/vm.cpp b/src/vm.cpp index c77c66167d..997d8f718e 100644 --- a/src/vm.cpp +++ b/src/vm.cpp @@ -708,6 +708,8 @@ resolveClass(Thread* t, object spec) if (data) { class_ = parseClass(t, data, size); + t->vm->classFinder->free(data); + PROTECT(t, class_); hashMapInsert(t, t->vm->classMap, h, spec, class_); } else {