[SVCAE] Resolves memory leak issue 56/198656/1
authord.saraswat <d.saraswat@samsung.com>
Mon, 28 Jan 2019 11:11:21 +0000 (16:41 +0530)
committerd.saraswat <d.saraswat@samsung.com>
Mon, 28 Jan 2019 11:13:55 +0000 (16:43 +0530)
Change-Id: I60632e1344f849b42e0b6ca2182c3fc79f2dbb95
Signed-off-by: d.saraswat <d.saraswat@samsung.com>
common/app_control.cc

index aa1423040c91e97e2e692379aad15ac7af9e5c29..d2d874b653153162be65f25e136670186a29cda6 100755 (executable)
@@ -239,6 +239,7 @@ bool AppControl::Reply(const std::map<std::string,
   if (appsvc_create_result_bundle(app_control_bundle_,
                                   &result) != APPSVC_RET_OK) {
     LOGGER(ERROR) << "Failed to craete result bundle.";
+    bundle_free(result);
     return false;
   }
   auto it = data.begin();