Change-Id: I6ac76170d7b6bb276efcd6a9d9234e99d3285bd8
Signed-off-by: Semun Lee <sm79.lee@samsung.com>
if (event_cb_context == NULL)
{
+ app_context_unlock_event_cb_context();
return app_manager_error(APP_MANAGER_ERROR_OUT_OF_MEMORY, __FUNCTION__, NULL);
}
if (event_cb_context->pid_table == NULL)
{
+ free(event_cb_context);
+ event_cb_context = NULL;
+ app_context_unlock_event_cb_context();
return app_manager_error(APP_MANAGER_ERROR_IO_ERROR, __FUNCTION__, "failed to initialize pid-table");
}