Aryan PrajapatKnowledge Contributor
What are the possible reasons for memory leaks?
What are the possible reasons for memory leaks?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Questions | Answers | Discussions | Knowledge sharing | Communities & more.
Memory leaks can lead to poor performance, slow loading times and even crashes in web applications. Some of the common causes of memory leaks are listed below,
The execessive usage of global variables or omitting the var keyword in local scope.
Forgetting to clear the timers set up by setTimeout or setInterval.
Closures retain references to variables from their parent scope, which leads to variables might not garbage collected even they are no longer used.