Fix logging runtime bug (#4368)
author오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 <hseok82.oh@samsung.com>
Thu, 31 Jan 2019 03:40:12 +0000 (12:40 +0900)
committer박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 <saehie.park@samsung.com>
Thu, 31 Jan 2019 03:40:12 +0000 (12:40 +0900)
Fix logging runtime bug: print address after console logging

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
runtimes/logging/src/nnapi_logging.cc

index d3c7b0f..7b96551 100644 (file)
@@ -149,8 +149,8 @@ int ANeuralNetworksMemory_createFromFd(size_t size, int protect, int fd, size_t
 
 void ANeuralNetworksMemory_free(ANeuralNetworksMemory *memory)
 {
-  delete memory;
   std::cout << __FUNCTION__ << "(" << memory << ")" << std::endl;
+  delete memory;
 }
 
 //