L
lihua
Hi, Group!
I got one question here:
We all know that fclose() must be called after file operations to
avoid unexpected errors.But there are really cases when you forget to
do that!Just
like what happens in memory operations, everyone knows the importance
of
freeing the allocated memory, but there do have memory leaks from time
to
time! For the memory leak case, there are lots of testing tools to
detect it
automatically like Rational Purify or other free ones.
So my question is: is there any testing tool right there which can
detect
forgetting-fclose defects automatically?
I have searched google pages and groups but seem to get no hint!
Any help will be greatly appreciated!
I got one question here:
We all know that fclose() must be called after file operations to
avoid unexpected errors.But there are really cases when you forget to
do that!Just
like what happens in memory operations, everyone knows the importance
of
freeing the allocated memory, but there do have memory leaks from time
to
time! For the memory leak case, there are lots of testing tools to
detect it
automatically like Rational Purify or other free ones.
So my question is: is there any testing tool right there which can
detect
forgetting-fclose defects automatically?
I have searched google pages and groups but seem to get no hint!
Any help will be greatly appreciated!