[Fixed] Memory leaks for Spam command routine