#include #include int main ( void ) { int *x = ( int * ) malloc ( sizeof ( int ) ); int *y = ( int * ) malloc ( sizeof ( int ) ); if ( ( NULL != x ) || ( NULL != y ) ) { *x = 1; //遵循1 free ( x ); //遵循2 free ( y ); //遵循3 } else { //... } return ( 0 ); }