[Core/Handler] Replace realloc() with malloc()
authorWook Song <wook16.song@samsung.com>
Mon, 10 Aug 2020 05:27:54 +0000 (14:27 +0900)
committer채동주/On-Device Lab(SR)/Staff Engineer/삼성전자 <dongju.chae@samsung.com>
Mon, 10 Aug 2020 09:46:11 +0000 (18:46 +0900)
commit584bbfc7e16d11f12d71442830999c01f6ca7c07
tree73036508c7fdf9dbe398f5d92a3493137102f775
parent6b68a34afd9a59e5d3b33619aa864c16eec02ce0
[Core/Handler] Replace realloc() with malloc()

After realloc (), the old pointer used in ralloc () could point invalid
address so that we cannot use meta->magiccode. This patch simply
replaces realloc () with malloc () to avoid such issue.

Signed-off-by: Wook Song <wook16.song@samsung.com>
src/core/ne-handler.cc