Self-Memory Alignment: Mitigating Factual Hallucinations with Generalized Improvement