Prevent fix
[platform/framework/native/channel-service.git] / src / IpcServer.cpp
index e623125..0debbd9 100644 (file)
@@ -339,7 +339,7 @@ IpcServer::OnConnectionRequest(GIOChannel* source, GIOCondition condition, gpoin
 
                char* pAppId = NULL;
                int ret = app_manager_get_app_id(helloMessage.pid, &pAppId);
-               SysTryCatch(NID_IO, ret >= 0, ,E_SYSTEM, "[E_SYSTEM] Failed to get_app_id: %d", ret);
+               SysTryCatch(NID_IO, ret >= 0, delete pClientInfo, E_SYSTEM, "[E_SYSTEM] Failed to get_app_id: %d", ret);
 
                pClientInfo->appId = pAppId;
                free(pAppId);