func: void bad() int * data ; int * & dataRef = data ; data = NULL; data = ( int * ) malloc ( 10 ); int * data = dataRef ; int source [ 10 ] = { 0 } ; size_t i ; for (i = 0; i < 10; i++) data [ i ] = source [ i ]; free ( data ); 