diff options
author | Georgios Pinitas <georgios.pinitas@arm.com> | 2017-09-15 19:36:30 +0100 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-11-02 16:35:24 +0000 |
commit | aec513c52f88b21e01a92d3e1f20f4e2b7bd9f01 (patch) | |
tree | 46dc9b3126930fa2e1fe66ac79916341cfd65a74 /arm_compute | |
parent | 52f8b39a50b7c3e0b3180584dd5c4392cc16cd51 (diff) | |
download | ComputeLibrary-aec513c52f88b21e01a92d3e1f20f4e2b7bd9f01.tar.gz |
COMPMID-417: Fix potential memory leak in CLReduction Kernel.
Change-Id: I1c285b2fdac5ebf154731e8e34e0549a7f92525f
Reviewed-on: http://mpd-gerrit.cambridge.arm.com/87939
Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com>
Reviewed-by: Moritz Pflanzer <moritz.pflanzer@arm.com>
Diffstat (limited to 'arm_compute')
-rw-r--r-- | arm_compute/runtime/CL/functions/CLReductionOperation.h | 2 |
1 files changed, 1 insertions, 1 deletions
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<CLTensor *> _sums_vector{ nullptr }; + std::unique_ptr<CLTensor[]> _sums_vector{ nullptr }; std::unique_ptr<CLReductionOperationKernel[]> _reduction_kernels_vector{ nullptr }; std::unique_ptr<CLFillBorderKernel[]> _border_handlers_vector{ nullptr }; unsigned int _num_of_stages; |