Fix memory leak of mprobe 02/206502/1 accepted/tizen/5.0/unified/20190523.015904 submit/tizen_5.0/20190521.040134
authorYoungHun Kim <yh8004.kim@samsung.com>
Fri, 17 May 2019 09:35:04 +0000 (18:35 +0900)
committerYoungHun Kim <yh8004.kim@samsung.com>
Mon, 20 May 2019 23:39:59 +0000 (23:39 +0000)
commit68e6abd5115102c06790215c642acb77dc32d0c8
tree11a04a96d63ad2dce89187132466b45aa4f4587e
parent9ac268cc9abd607818deb8893fb197bfb81591f9
Fix memory leak of mprobe

 - When mcheck () fails in MRP_INIT time and then mprobe () returns MCHECK_DISABLED, which needs
   to free memory otherwise occur abnormal memory corruption.
   For more detailed, MRP_INIT (memory_check_init) is executed in the parent process of forking and
   __passthru_free is executed in the child process. So variable (mcheck_result) is unnecessary because
   we can consider mprobe returns always only MCHECK_DISABLED and mcheck is not performed at child process.

Change-Id: I123d3af30cb1b84b34b09349952a225ee0ec91ad
(cherry picked from commit aade6316b0de6e75e4b71ca60ec9a23f0d6e16f6)
packaging/murphy.spec
src/common/mm.c