#include #include int main ( void ) { int *x = ( int * ) malloc ( sizeof ( int ) ); if ( NULL != x ) { *x = 1; //...... free ( x ); //违背1 } else { return ( -1 ); } //...... return ( 0 ); }