func: static void goodB2G() char * data ; data = NULL; data = NULL; data = ( char * ) realloc ( data , 100 * sizeof ( char ) ); myStruct . structFirst = data; goodB2GSink ( myStruct ); void goodB2GSink(structType myStruct) char * data = myStruct . structFirst ; free ( data ); 