From nobody Sun Feb 8 16:05:47 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) client-ip=170.10.129.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1659530706; cv=none; d=zohomail.com; s=zohoarc; b=gscUQBgk2r5TLudTrQ8a2XCzebMOz+pVxo8a7YjyfdhyQfslImRQYfFaajG1Bt98jkpAQqXepfRasGodLEfWSDA5xCwOWszT2ZNOGI1jrngBXTin0kD82/AGR24TO/cymkR23rHLRfgUv/k3orW8jbWX+7qmgcKNTyA3Pwjkp8Q= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1659530706; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=sPZz2S/GcMcwgCPhMSgtUnRGnhitxd11M3L7XFkEDrE=; b=LHnBbkJdwIPSD+q+Xdws/kvJ6zjXJKrVvUFj+vBtjIEk0BWnJ5qDm7vMKvR7t/YJhCmhJQuWMPfvafkNzt6859iLty7/dGS95ZvDIG8LggJOi4qo8MuBCpxwEFgmBHy9yrc0FFqBqvAGPK8yByfbUpN0yhnqvv6PfoYLgBdLQq0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.zohomail.com with SMTPS id 1659530706250346.27049573636907; Wed, 3 Aug 2022 05:45:06 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-651-Vo3C7ohpMBuJFRQKTOehAA-1; Wed, 03 Aug 2022 08:44:56 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id E1B1F1035349; Wed, 3 Aug 2022 12:44:53 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (unknown [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id CFC971121314; Wed, 3 Aug 2022 12:44:53 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id E7B5E1946A53; Wed, 3 Aug 2022 12:44:52 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 4D54E1946A5C for ; Wed, 3 Aug 2022 12:44:47 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 3378BC28125; Wed, 3 Aug 2022 12:44:47 +0000 (UTC) Received: from fedora.redhat.com (unknown [10.43.2.166]) by smtp.corp.redhat.com (Postfix) with ESMTP id D3D18C27DB3 for ; Wed, 3 Aug 2022 12:44:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1659530704; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=sPZz2S/GcMcwgCPhMSgtUnRGnhitxd11M3L7XFkEDrE=; b=YD425AvxkfrTFEFMEe2Z6AIBHxgbWzyiza8qxToNFQv7ZSOoD0zDmshFhsU19KBI+Z9vZ0 89sjUUHbp3k+7VOxgF5Qip9Lq+1b98jIdrTRImu1b+vcAHxzIVukL21o9jJyM5HDb26hJF yHOxDil/mTu7wmV4WUs7AlTE71N0ffg= X-MC-Unique: Vo3C7ohpMBuJFRQKTOehAA-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Kristina Hanicova To: libvir-list@redhat.com Subject: [PATCH 08/11] CH: use virDomainObjClearJob() instead of virCHDomainObjFreeJob() Date: Wed, 3 Aug 2022 14:43:19 +0200 Message-Id: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.85 on 10.11.54.8 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1659530708260100001 Content-Type: text/plain; charset="utf-8"; x-default="true" Signed-off-by: Kristina Hanicova --- src/ch/ch_domain.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/ch/ch_domain.c b/src/ch/ch_domain.c index 499d31cf4a..817b1176d5 100644 --- a/src/ch/ch_domain.c +++ b/src/ch/ch_domain.c @@ -32,12 +32,6 @@ =20 VIR_LOG_INIT("ch.ch_domain"); =20 -static void -virCHDomainObjFreeJob(virCHDomainObjPrivate *priv) -{ - ignore_value(virCondDestroy(&priv->job.cond)); -} - /* * obj must be locked before calling, virCHDriver must NOT be locked * @@ -129,7 +123,7 @@ virCHDomainObjPrivateAlloc(void *opaque) } =20 if (!(priv->chrdevs =3D virChrdevAlloc())) { - virCHDomainObjFreeJob(priv); + virDomainObjClearJob(&priv->job); g_free(priv); return NULL; } @@ -144,7 +138,7 @@ virCHDomainObjPrivateFree(void *data) virCHDomainObjPrivate *priv =3D data; =20 virChrdevFree(priv->chrdevs); - virCHDomainObjFreeJob(priv); + virDomainObjClearJob(&priv->job); g_free(priv->machineName); g_free(priv); } --=20 2.37.1