Use delete[] to deallocate after new[] (#1107)

* Use delete[] to deallocate after new[]

* Fixup formatting with git-clang-format
diff --git a/test_conformance/mem_host_flags/C_host_memory_block.h b/test_conformance/mem_host_flags/C_host_memory_block.h
index 91b47ab..1d3b475 100644
--- a/test_conformance/mem_host_flags/C_host_memory_block.h
+++ b/test_conformance/mem_host_flags/C_host_memory_block.h
@@ -69,31 +69,28 @@
 template < class T>
 C_host_memory_block<T>::~C_host_memory_block()
 {
-  if (pData!=NULL) delete pData;
-  num_elements = 0;
+    if (pData != NULL) delete[] pData;
+    num_elements = 0;
 }
 
 template < class T >
 void C_host_memory_block<T>::Init(int num_elem, T & value)
 {
-  if (pData!=NULL) delete pData;
-  pData= new T [num_elem];
-  for (int i=0; i<num_elem; i++)
-    pData[i] = value;
+    if (pData != NULL) delete[] pData;
+    pData = new T[num_elem];
+    for (int i = 0; i < num_elem; i++) pData[i] = value;
 
-  num_elements= num_elem;
+    num_elements = num_elem;
 }
 
 template < class T >
 void C_host_memory_block<T>::Init(int num_elem)
 {
-  if (pData!=NULL) delete pData;
-  pData = new T [num_elem];
-  for (int i=0; i<num_elem; i++)
-    pData[i]= (T) i;
+    if (pData != NULL) delete[] pData;
+    pData = new T[num_elem];
+    for (int i = 0; i < num_elem; i++) pData[i] = (T)i;
 
-  num_elements = num_elem;
-
+    num_elements = num_elem;
 }
 template < class T >
 void  C_host_memory_block<T>::Set_to_zero()