Fix a memory fail problem when pair verify failed