From 96ef959b7aace20d7698e25066ed80f59bf8354b Mon Sep 17 00:00:00 2001 From: barrierye Date: Fri, 10 Apr 2020 18:52:01 +0800 Subject: [PATCH] fix code --- core/predictor/framework/memory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/predictor/framework/memory.cpp b/core/predictor/framework/memory.cpp index ec5967c8..9e7f028e 100644 --- a/core/predictor/framework/memory.cpp +++ b/core/predictor/framework/memory.cpp @@ -56,11 +56,11 @@ int MempoolWrapper::thread_initialize() { im::fugue::memory::Region* region = new im::fugue::memory::Region(); region->init(); im::Mempool* mempool = new (std::nothrow) im::Mempool(region); - MempoolRegion* mempool_region = new MempoolRegion(region, mempool); if (mempool == NULL) { LOG(ERROR) << "Failed create thread mempool"; return -1; } + MempoolRegion* mempool_region = new MempoolRegion(region, mempool); if (THREAD_SETSPECIFIC(_bspec_key, mempool_region) != 0) { LOG(ERROR) << "unable to set the thrd_data"; -- GitLab