You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by jx...@apache.org on 2018/01/13 21:55:28 UTC

[incubator-mxnet] branch master updated: Fixed memory leak (#9400)

This is an automated email from the ASF dual-hosted git repository.

jxie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git


The following commit(s) were added to refs/heads/master by this push:
     new b1ad161  Fixed memory leak (#9400)
b1ad161 is described below

commit b1ad1619d8007dc7dfc0f4ba9cc8720b3e0dd32a
Author: Anton Chernov <me...@gmail.com>
AuthorDate: Sat Jan 13 22:55:24 2018 +0100

    Fixed memory leak (#9400)
---
 src/operator/operator_tune-inl.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/operator/operator_tune-inl.h b/src/operator/operator_tune-inl.h
index d4eec99..2dfc103 100644
--- a/src/operator/operator_tune-inl.h
+++ b/src/operator/operator_tune-inl.h
@@ -616,7 +616,7 @@ class UnaryOpTune : public OperatorTune<DType> {
    */
   template<typename OP>
   static duration_t GetBlankWorkloadEx() {
-    std::unique_ptr<DType> tmp(new DType[Super::WORKLOAD_COUNT]);
+    std::unique_ptr<DType[]> tmp(new DType[Super::WORKLOAD_COUNT]);
     DType *tmp_ptr = tmp.get();
     const Tick start = std::chrono::high_resolution_clock::now();
     for (size_t i = 0; i < Super::WORKLOAD_COUNT; ++i) {

-- 
To stop receiving notification emails like this one, please contact
['"commits@mxnet.apache.org" <co...@mxnet.apache.org>'].