Fix memory leak in using pkgmgrinfo_appinfo_h 74/103174/1 accepted/tizen/3.0/common/20161208.153757 accepted/tizen/3.0/ivi/20161208.063754 accepted/tizen/3.0/mobile/20161208.063719 accepted/tizen/3.0/tv/20161208.063738 accepted/tizen/3.0/wearable/20161208.063745 submit/tizen_3.0/20161208.010952
authorJiwoong Im <jiwoong.im@samsung.com>
Wed, 7 Dec 2016 11:42:40 +0000 (20:42 +0900)
committerJiwoong Im <jiwoong.im@samsung.com>
Wed, 7 Dec 2016 11:43:23 +0000 (20:43 +0900)
Change-Id: Iad18257ff2afe4b3d0fd95f0629fb868eff6f09d
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
alarm-manager.c

index 7784353..48b106a 100644 (file)
@@ -1756,6 +1756,8 @@ static void __alarm_expired()
 
                        ret = pkgmgrinfo_appinfo_get_usr_appinfo(appid, __alarm_info->uid, &appinfo_handle);
                        ALARM_MGR_LOG_PRINT("appid : %s (%x)", appid, appinfo_handle);
+                       if (appinfo_handle)
+                               pkgmgrinfo_appinfo_destroy_appinfo(appinfo_handle);
 
                        /* Case #2. The process was killed && App type
                         * This app is launched and owner of DBus connection is changed. and then, expiration noti is sent by DBus. */