Fix memory leak of mprobe 15/206415/3 accepted/tizen/unified/20190602.221852 submit/tizen/20190520.225431 submit/tizen/20190529.235003
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 06:15:54 +0000 (15:15 +0900)
commitaade6316b0de6e75e4b71ca60ec9a23f0d6e16f6
tree11a04a96d63ad2dce89187132466b45aa4f4587e
parent2e50ff6d704db0eb0a9c8e7d0a8b403790918769
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
packaging/murphy.spec
src/common/mm.c