[Fix/Bug] memory allocator's allocMemory() should not create hwmem
authorDongju Chae <dongju.chae@samsung.com>
Tue, 19 May 2020 04:27:59 +0000 (13:27 +0900)
committer송욱/On-Device Lab(SR)/Staff Engineer/삼성전자 <wook16.song@samsung.com>
Tue, 19 May 2020 11:00:34 +0000 (20:00 +0900)
commite1a9325dee39d6e10a13bd0509e80c5a17aa283b
tree4abc29e8cca4690719128ffceb905672d5b1ac36
parent8126d24e6b5ffc93f066dc1d983c44aa43aa4d22
[Fix/Bug] memory allocator's allocMemory() should not create hwmem

This patch fixes the bug that memory allocator's allocMemory() has
created hwmem instance. It could make a double-free bug.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
src/core/ne-handler.cc
src/core/ne-handler.h
src/core/ne-mem.cc
src/core/ne-mem.h
tests/unittests/ne_core_handler_test.cc
tests/unittests/ne_core_inf_test.cc
tests/unittests/ne_core_mem_test.cc
tests/unittests/ne_core_segment_table_test.cc