JIT: don't leak shim memory when shutting down the interpreter (#142984)

3 files changed