|
From: Gong C. <g...@ac...> - 2003-09-07 03:51:34
|
I have a wired bug
the code is like this
printf("%d",i);
free(j);
printf("%d",i);
if we suppose i =1 ,the result should be
1
1
but in reality, the result is
1
0
The interesting thing is that if I use valgrind to run the program,
the result turn back to
1
1
anybody know what's the difference between normal free and the free in
valgrind?
Thanks a lot!
Gong
|