func: static void goodG2B() int count ; count = - 1; CWE400_Resource_Exhaustion__rand_fwrite_84_goodG2B * goodG2BObject = new CWE400_Resource_Exhaustion__rand_fwrite_84_goodG2B ( count ) ; CWE400_Resource_Exhaustion__rand_fwrite_84_goodG2B::CWE400_Resource_Exhaustion__rand_fwrite_84_goodG2B(int countCopy) count = countCopy; count = 20; delete goodG2BObject CWE400_Resource_Exhaustion__rand_fwrite_84_goodG2B::~CWE400_Resource_Exhaustion__rand_fwrite_84_goodG2B() const char * filename = "output_bad.txt" ; pFile = fopen ( filename , "w+" ); if ( pFile == NULL )  if ( strlen ( SENTENCE ) != fwrite ( SENTENCE , sizeof ( char ) , strlen ( SENTENCE ) , pFile ) )  if ( pFile )  fclose ( pFile ); 