Fixes memory leak in plugin by using ts3Functions.freeMemory().