Fix svace issue
[platform/core/telephony/tel-plugin-manager.git] / src / manager_call.c
old mode 100755 (executable)
new mode 100644 (file)
index 7b9d2c0..6f02b9b
@@ -640,6 +640,8 @@ static enum tcore_manager_return manager_call_silent_redial(CoreObject *co_call,
 
        plugin = tcore_object_ref_plugin(co_call);
        arg = g_malloc0(sizeof(struct silent_redial_hook_arg));
+       if (!arg)
+               return TCORE_MANAGER_RETURN_FAILURE;
 
        if ((TFEATURE_SUPPORTED == tfeature_is_supported(TFEATURE_FUNCTION_NET_CHECK_ECC_RAT)) &&
            (TCORE_CALL_TYPE_E911 == tcore_call_object_get_type(call_obj)) &&
@@ -1543,6 +1545,10 @@ gboolean manager_call_initialize_private_info(ModemBoard *mb)
                manager_call_clear_private_info(mb);
 
        mb->call_info = g_try_malloc0(sizeof(struct manager_call_private_info));
+       if(mb->call_info == NULL) {
+               err("Memory alloc failed");
+               return FALSE;
+       }
 
        cpi = mb->call_info;
        cpi->rat_query_cache.call_handle = INVALID_HANDLE;