diff options
author | Jiwoong Im <jiwoong.im@samsung.com> | 2016-12-07 20:42:40 +0900 |
---|---|---|
committer | Jiwoong Im <jiwoong.im@samsung.com> | 2016-12-07 20:43:23 +0900 |
commit | 07a2061109dd0db53543a5c69bde18f2751e1969 (patch) | |
tree | 761e560c40df2a6714f03e95831fef87655a746b | |
parent | 1f6eb8d73568d740a00350f7929938edbcb0777c (diff) | |
download | alarm-manager-accepted/tizen/3.0/ivi/20161208.063754.tar.gz alarm-manager-accepted/tizen/3.0/ivi/20161208.063754.tar.bz2 alarm-manager-accepted/tizen/3.0/ivi/20161208.063754.zip |
Fix memory leak in using pkgmgrinfo_appinfo_hsubmit/tizen_3.0/20161208.010952accepted/tizen/3.0/wearable/20161208.063745accepted/tizen/3.0/tv/20161208.063738accepted/tizen/3.0/mobile/20161208.063719accepted/tizen/3.0/ivi/20161208.063754accepted/tizen/3.0/common/20161208.153757
Change-Id: Iad18257ff2afe4b3d0fd95f0629fb868eff6f09d
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
-rw-r--r-- | alarm-manager.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/alarm-manager.c b/alarm-manager.c index 7784353..48b106a 100644 --- a/alarm-manager.c +++ b/alarm-manager.c @@ -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. */ |