Home > front end >  Possible memory leaks after using malloc
Possible memory leaks after using malloc

Time:12-10

I worked on my school project. I used malloc quite badly without free. Since then my computer has been much slower and I am afraid that memory leaks could be the reason for it. I use Ubuntu 20.04.

I tried to restart it but it is still slow many days after it. Can I somehow check if memory leaks are the problem and solve it?

CodePudding user response:

maybe your computer will be slow if your program still running and have some big memory leaks, but I don't believe that effect your computer when your program is shouted down and is finished its execution, cuz when the program exit and finish the execution all the memory is freed by the kernel implicitly and that area gonna be used next time your computer needs to allocate new memory.

  • Related