Suppose I ask a question and I receive one answer that answers the question that was asked really well and another answer that solved my problem without answering the question I asked. Which answer should I accept?
What is meta?
- Any Stack Exchange user can ask a question
- The community provides support, votes on ideas, and reports bugs
- Your voice helps shape the way Stack Exchange operates
I would personally accept the answer which actually helped you the most - but upvote both, of course.
Bear in mind that the next person who finds your answer when asking about memory leaks will probably benefit more from the "stop the cause" than "treat the symptom" approach too, so it's good for them if that answer is at the top.