From aec513c52f88b21e01a92d3e1f20f4e2b7bd9f01 Mon Sep 17 00:00:00 2001 From: Georgios Pinitas Date: Fri, 15 Sep 2017 19:36:30 +0100 Subject: COMPMID-417: Fix potential memory leak in CLReduction Kernel. Change-Id: I1c285b2fdac5ebf154731e8e34e0549a7f92525f Reviewed-on: http://mpd-gerrit.cambridge.arm.com/87939 Tested-by: Kaizen Reviewed-by: Moritz Pflanzer --- arm_compute/runtime/CL/functions/CLReductionOperation.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'arm_compute/runtime/CL/functions/CLReductionOperation.h') diff --git a/arm_compute/runtime/CL/functions/CLReductionOperation.h b/arm_compute/runtime/CL/functions/CLReductionOperation.h index 09beabad8d..4ce17ae3a9 100644 --- a/arm_compute/runtime/CL/functions/CLReductionOperation.h +++ b/arm_compute/runtime/CL/functions/CLReductionOperation.h @@ -62,7 +62,7 @@ public: private: CLMemoryGroup _memory_group; - std::vector _sums_vector{ nullptr }; + std::unique_ptr _sums_vector{ nullptr }; std::unique_ptr _reduction_kernels_vector{ nullptr }; std::unique_ptr _border_handlers_vector{ nullptr }; unsigned int _num_of_stages; -- cgit v1.2.1