Fix memory leak I introduced when refactoring unexpected packet code.