Fix memory leak of mprobe 05/206505/1 accepted/tizen/4.0/unified/20190726.001415 submit/tizen_4.0/20190521.040544 submit/tizen_4.0/20190725.074254
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:45:54 +0000 (23:45 +0000)
commit1a024214b470e09f316f14ee6e376a914423f57c
tree43d3ec92ff667ee94f848f64f1e4865915704d0c
parent007ddf93e990f26bfd017ade03502bf5976d6df5
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