Click here to Skip to main content
15,898,222 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi guys
I have one question and i am searching answer for that question from few days. My question is

Detecting memory leak in C at compile time, is it possible?

Do we have any tool that can fix memory leaks automatically at compile time?


Thanks
BipinC
Posted

wrote:
Do we have any tool that can fix memory leaks automatically at compile time?


No, you need to fix them yourself.


wrote:
Detecting memory leak in C at compile time, is it possible?


There are tools you can buy that attempt to fix them, but they work at run time. A compile time tool would be quite a feat, it would have to track all the possible paths of operation as it compiles.
 
Share this answer
 
wrote:
Detecting memory leak in C at compile time, is it possible?

It is possible to detect some of them (the ones you probably could detect with a bit of attention by code inspection; in other words, the easy ones...).
:)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900