func: static void goodB2G2() char * data ; char myString [ ] = "myString" ; data = strdup ( myString ); printLine ( data ); void printLine (const char * line) if ( line != NULL )  printf ( "%s\n" , line ); goodB2G2Sink ( data ); static void goodB2G2Sink(char * data) free ( data ); 