diff --git a/src/machine.cpp b/src/machine.cpp index fdbe8ed029..1c8e985548 100644 --- a/src/machine.cpp +++ b/src/machine.cpp @@ -618,6 +618,7 @@ resolveSpec(Thread* t, object loader, object spec, unsigned offset) } PROTECT(t, spec); + PROTECT(t, loader); unsigned length = s - &byteArrayBody(t, spec, offset);