core & emul_interpreter: fix more memleak