diff --git a/src/core.c b/src/core.c index ad7799b..0f95ad9 100644 --- a/src/core.c +++ b/src/core.c @@ -205,6 +205,7 @@ static void og_agent_deliver_pending_cmd(struct og_client *cli) return; } + json_incref(cmd->json); og_send_request(cmd->method, cmd->type, &cmd->params, cmd->json); cli->last_cmd_id = cmd->id;