Change-Id: I95b3dddb9eaf029e536681894f68af00999656fa
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
bundle_del(app_control->data, BUNDLE_KEY_OPERATION);
if (launch_pid < 0) {
- if (request_context->app_control)
- app_control_destroy(request_context->app_control);
+ if (request_context) {
+ if (request_context->app_control)
+ app_control_destroy(request_context->app_control);
- free(request_context);
+ free(request_context);
+ }
if (launch_pid == APPSVC_RET_ENOMATCH)
return app_control_error(APP_CONTROL_ERROR_APP_NOT_FOUND, __FUNCTION__, NULL);