actually remove unnecessary free( ) calls