d2d-conv-manager: fix KONA memory leak issue 31/104331/1
authorHongkuk, Son <hongkuk.son@samsung.com>
Tue, 13 Dec 2016 06:18:06 +0000 (15:18 +0900)
committerHongkuk Son <hongkuk.son@samsung.com>
Tue, 13 Dec 2016 06:20:58 +0000 (22:20 -0800)
RQ161213-00667 [OSS_Improve_3.0] : [Memory Leak] Verifying usage of app_control_create() API

Signed-off-by: Hongkuk, Son <hongkuk.son@samsung.com>
Change-Id: I7ec05ac99c79e205d054c9274b847edc79fb43ab

daemon/service_provider/RemoteAppControlServiceProvider.cpp

index 320f4a2..ea0eeb5 100755 (executable)
@@ -421,10 +421,10 @@ static int __app_control_launch(iotcon_request_h request, iotcon_attributes_h at
                                _send_response(request, NULL, result);
                                app_control_cb_map.erase(reply_id);
                        }
-
-                       bundle_free(appctl_bundle);
-                       app_control_destroy(app_control);
                }
+
+               bundle_free(appctl_bundle);
+               app_control_destroy(app_control);
        } else {
                iotcon_response_result_e result;
                ret = app_control_send_launch_request(app_control, NULL, NULL);