 
 	printf("Custom reduction: "); b40c::CompareDeviceResults(h_reference, d_dest, 1); printf("\n");
 
+	delete h_data;
+	delete h_reference;
+
 	return 0;
 }
 

    b40c::DeviceInit(args);

	typedef unsigned int T;
	const int NUM_ELEMENTS = 10;
	Max<T> max_op;

	// Allocate and initialize host problem data and host reference solution
	T h_data[NUM_ELEMENTS];
	T h_reference[1];
	for (int i = 0; i < NUM_ELEMENTS; i++) {
		h_data[i] = i;
		h_reference[0] = (i == 0) ?

	// Create a reduction enactor
	b40c::reduction::Enactor reduction_enactor;
	
	//
	// Example 1: Enact simple reduction using internal tuning heuristics
	//
