From: Somin Kim Date: Thu, 26 Jan 2017 03:15:55 +0000 (+0900) Subject: Fix memory leak(TSAM-12738) X-Git-Tag: submit/tizen_3.0/20170131.093134^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=57a79a70ec8cc50bd3cf5fbf037314e056630842;p=platform%2Fcore%2Fapi%2Fcontext.git Fix memory leak(TSAM-12738) Change-Id: Ic8aac37e17e6fae9e2fa71e48cbfa4106ce1d352 Signed-off-by: Somin Kim --- diff --git a/src/context_trigger.cpp b/src/context_trigger.cpp index 169dbff..dbfee68 100644 --- a/src/context_trigger.cpp +++ b/src/context_trigger.cpp @@ -452,6 +452,8 @@ SO_EXPORT int context_trigger_rule_set_action_notification(context_trigger_rule_ error = pkgmgrinfo_appinfo_get_usr_appinfo(app_id, getuid(), &app_info); g_free(app_id); IF_FAIL_RETURN_TAG(error == PMINFO_R_OK, CONTEXT_TRIGGER_ERROR_INVALID_RULE, _E, "No such app"); + + pkgmgrinfo_appinfo_destroy_appinfo(app_info); } // Set title, content