func: static void goodG2B() int * data ; map < int , int * > dataMap ; data = NULL; data = ( int * ) malloc ( 10 * sizeof ( int ) ); dataMap [ 0 ] = data; dataMap [ 1 ] = data; dataMap [ 2 ] = data; goodG2BSink ( dataMap ); void goodG2BSink(map<int, int *> dataMap) int * data = dataMap [ 2 ] ; int source [ 10 ] = { 0 } ; size_t i ; for (i = 0; i < 10; i++) data [ i ] = source [ i ]; free ( data ); 