core: fix very small memory leak
core: removed some redundant output