Fix memmory leak of pkgmgrinfo handle 63/133163/1 accepted/tizen/3.0/common/20170612.121632 accepted/tizen/3.0/ivi/20170612.050039 accepted/tizen/3.0/mobile/20170612.050020 accepted/tizen/3.0/tv/20170612.050026 accepted/tizen/3.0/wearable/20170612.050034 submit/tizen_3.0/20170609.051056
authorJiwoong Im <jiwoong.im@samsung.com>
Fri, 9 Jun 2017 05:42:54 +0000 (14:42 +0900)
committerJiwoong Im <jiwoong.im@samsung.com>
Fri, 9 Jun 2017 05:42:54 +0000 (14:42 +0900)
Change-Id: Ib2468e6c0ef79daf323469f2df5f85a85150e347
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
alarm-manager.c

index 00ed092..8f2d12e 100644 (file)
@@ -3585,7 +3585,7 @@ gboolean alarm_manager_alarm_set_global(AlarmManager *pObject, GDBusMethodInvoca
                        } else if (retval == PMINFO_R_OK && !is_global) {
                                return_code = ERR_ALARM_NOT_PERMITTED_APP;
                        }
-
+                       pkgmgrinfo_pkginfo_destroy_pkginfo(handle);
                }
                g_dbus_method_invocation_return_value(invoc, g_variant_new("(i)", return_code));
        }