| 128 | } |
| 129 | |
| 130 | static void free_async_command(async_command_t *cmd) |
| 131 | { |
| 132 | if (!cmd) { |
| 133 | return; |
| 134 | } |
| 135 | cmd_list = g_list_remove(cmd_list, cmd); |
| 136 | |
| 137 | g_list_free_full(cmd->device_list, free); |
| 138 | free(cmd->device); |
| 139 | free(cmd->action); |
| 140 | free(cmd->victim); |
| 141 | free(cmd->remote_op_id); |
| 142 | free(cmd->client); |
| 143 | free(cmd->client_name); |
| 144 | free(cmd->origin); |
| 145 | free(cmd->op); |
| 146 | free(cmd); |
| 147 | } |
| 148 | |
| 149 | static async_command_t *create_async_command(xmlNode *msg) |
| 150 | { |
no test coverage detected