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?
Which answer should I accept - that which solved my problem or that which solved the question asked?
1 Answer
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.