- 内在泄露
/* 循环中定义指针 */
int loopDefinePointer()
{
int i, count = 10;
for( i=0; i<count; i++ )
{
char *p = (char *)malloc( sizeof(char) );
*p = 'a';
printf( "Point Address: %x\n", p );
free(p);
printf( "Point Address: %c\n", *p );
}
return 1;
}
2.