|
From: Nigel H. <nj...@ba...> - 2006-08-13 17:07:54
|
1. create this file:
main()
{
close(15);
}
2. cc -g foo.c
3. valgrind --tool=memcheck --num-callers=20 --leak-check=yes
--track-fds=yes ./a.out
Since file descriptors are being tracked, it would be useful to warn of
closing files that aren't open, perhaps --warn-close-fds=yes
-Nigel
|