Fix potential memory leak when finalize.
authorJihoon Lee <jhoon.it.lee@samsung.com>
Thu, 7 May 2020 03:47:13 +0000 (12:47 +0900)
committerJijoong Moon <jijoong.moon@samsung.com>
Thu, 7 May 2020 07:39:17 +0000 (16:39 +0900)
commitbcbd004c0e68c3a38c87d6dcb096de0573dc2214
tree6537d683ecec572b9b6449cce1232f9d046c7a47
parentc75363274debf8b5fc53fb6406a5fe7ad9807e2a
Fix potential memory leak when finalize.

This PR...

 1. Solves memory leak detected from valgrind.
 2. Correct the author of `unittest_util_func.cpp`.

Self evaluation:

Build test: [X]Passed [ ]Failed [ ]Skipped
Run test: [X]Passed [ ]Failed [ ]Skipped

Signed-off-by: Jihoon Lee <jhoon.it.lee@samsung.com>
api/capi/src/nntrainer.cpp
nntrainer/include/databuffer.h
nntrainer/src/databuffer.cpp
nntrainer/src/neuralnet.cpp
test/unittest/unittest_databuffer_file.cpp
test/unittest/unittest_util_func.cpp