From: d.saraswat Date: Wed, 23 Jan 2019 13:02:51 +0000 (+0530) Subject: Resolving memory leak issue in Reply function of AppControl X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ce54ddb0310adc9c889aff3748e1a317b48dc8d7;p=platform%2Fframework%2Fweb%2Fcrosswalk-tizen.git Resolving memory leak issue in Reply function of AppControl Change-Id: Ie068d445da64a247c1aadc45b33500a31c37c139 Signed-off-by: d.saraswat --- diff --git a/common/app_control.cc b/common/app_control.cc index aa14230..1bbf5af 100755 --- a/common/app_control.cc +++ b/common/app_control.cc @@ -236,8 +236,8 @@ bool AppControl::AddDataArray(const std::string& key, bool AppControl::Reply(const std::map>& data) { bundle* result; - if (appsvc_create_result_bundle(app_control_bundle_, - &result) != APPSVC_RET_OK) { + int temp = appsvc_create_result_bundle(app_control_bundle_,&result); + if (temp != APPSVC_RET_OK) { LOGGER(ERROR) << "Failed to craete result bundle."; return false; }