void main_sink(twoints * * data_ptr);void main(){twoints * data;data=NULL;data=NULL;data=(twoints *)realloc(data, 100*sizeof(twoints));main_sink(&data);}void main_sink(twoints * * data_ptr){twoints * data=*data_ptr;delete [] data;}
static void main(){twoints * data;data=NULL;data=NULL;data=(twoints *)realloc(data, 100*sizeof(twoints));main_sink(&data);}void main_sink(twoints * * data_ptr){twoints * data=*data_ptr;free(data);}