From nobody Sun Feb 8 21:50:29 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 205.139.110.61 as permitted sender) client-ip=205.139.110.61; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-1.mimecast.com; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.61 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1594633861; cv=none; d=zohomail.com; s=zohoarc; b=DvAd3DcOq2+Dbs3+yVPiWV0AohuR+pbSZHvYD0zFt84+thzI/BXczQEJiBVaU5W3400mbbmuz6rNkB4L5+MkvNZU0TXHi8X25oOLW3d2Pp/hdvN8ue2ia2n7hjxBse2OK/FRCcxe1//jr15CSRXOTURgkfvHsH1652TCTVuDsM4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1594633861; h=Content-Type:Content-Transfer-Encoding:Cc: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=osQqE2FNeXiEVht7XEfkBxr1+OVrfEdkrzF81KxXz3A=; b=YIa9cje56OX9DQfTGNb1WLXOuJf5I+YJ8U86zBZj3M19mxAh4pZ4GpBIGVtejtRt178achXS5Fa1w7RIo3oDmRNtdJky3wJAWa6YmspbQnquO5PjX2eFJnrBAkZpCR3A/VmWXyFzIi4sGXSex3/IH2JHzDS6XcRKfLq3nfO5vwo= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.61 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-1.mimecast.com (us-smtp-1.mimecast.com [205.139.110.61]) by mx.zohomail.com with SMTPS id 159463386176137.96670556670176; Mon, 13 Jul 2020 02:51:01 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-496-3zdnIUVKOlyDfl0ipeD1rA-1; Mon, 13 Jul 2020 05:50:57 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 0E95A8027EC; Mon, 13 Jul 2020 09:50:52 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id E34B377894; Mon, 13 Jul 2020 09:50:51 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id B52CC94F0F; Mon, 13 Jul 2020 09:50:51 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 06D9oiht005981 for ; Mon, 13 Jul 2020 05:50:45 -0400 Received: by smtp.corp.redhat.com (Postfix) id A3A222157F26; Mon, 13 Jul 2020 09:50:44 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast06.extmail.prod.ext.rdu2.redhat.com [10.11.55.22]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 88B4E2157F24 for ; Mon, 13 Jul 2020 09:50:42 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-1.mimecast.com [205.139.110.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 7FFA018056AD for ; Mon, 13 Jul 2020 09:50:42 +0000 (UTC) Received: from mail-qt1-f194.google.com (mail-qt1-f194.google.com [209.85.160.194]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-426-rKDzuthBN9WDBkHAQS2iqg-1; Mon, 13 Jul 2020 05:50:40 -0400 Received: by mail-qt1-f194.google.com with SMTP id b25so9463160qto.2 for ; Mon, 13 Jul 2020 02:50:40 -0700 (PDT) Received: from rekt.ibmuc.com ([2804:431:c7c7:530c:1b8b:2d79:f76d:3f06]) by smtp.gmail.com with ESMTPSA id o15sm18335057qko.67.2020.07.13.02.50.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jul 2020 02:50:39 -0700 (PDT) X-MC-Unique: 3zdnIUVKOlyDfl0ipeD1rA-1 X-MC-Unique: rKDzuthBN9WDBkHAQS2iqg-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=osQqE2FNeXiEVht7XEfkBxr1+OVrfEdkrzF81KxXz3A=; b=kfVIPLeIzfPKFosBzqj833bTSMoBsWKQuXqSoc0xcaSF1SeVlwgpjA9Dzw2QZKODiB uv8g8ywaIOSikjnWyMpxLI89Yd4EeqHOI5Xdx0+mVOvD4wDnxQda6xeMEEhIKi5XAHy7 Gc9qjXM20RX6YsymGGyUg6x16j7B+AA183rEF4dXB2s0C1/BukDAXpgFaUIVFzgKf3XO Kl9MyzM6l8O3WBlx29Ioo+o9hSdly8p3lskM+yRKrffx6mpU7Ckff4J3DqfIGMMn9Nr7 nc+5/XTo4rcZV/+RaYORBjWkOA3utPc3rvZH0EyUn0yr5lzXu8U9sBRGN96yAyJOJ8d7 3gjQ== X-Gm-Message-State: AOAM533G4g3QzKNY1CaLicH7O6PZJanwBA3x1dtPeku883cd64VvfMlS GDFNU0SE0Nrxc4i0xNnTXHdy3be+v0Q= X-Google-Smtp-Source: ABdhPJwvKqFv9CMjki2LR5M2Oq/Lsih0IwPH74uMP4SxMRVuzf1LUjZ94SY5MlzdOPYUbqapKkVJHw== X-Received: by 2002:ac8:6f7a:: with SMTP id u26mr82035822qtv.33.1594633839656; Mon, 13 Jul 2020 02:50:39 -0700 (PDT) From: Daniel Henrique Barboza To: libvir-list@redhat.com Subject: [PATCH v1 22/25] qemu_migration.c: use g_auto* in qemuMigrationDstFinish() Date: Mon, 13 Jul 2020 06:49:54 -0300 Message-Id: <20200713094957.1648405-23-danielhb413@gmail.com> In-Reply-To: <20200713094957.1648405-1-danielhb413@gmail.com> References: <20200713094957.1648405-1-danielhb413@gmail.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-loop: libvir-list@redhat.com Cc: Daniel Henrique Barboza X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Signed-off-by: Daniel Henrique Barboza --- src/qemu/qemu_migration.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/qemu/qemu_migration.c b/src/qemu/qemu_migration.c index c8bb0a6060..5d64e9df98 100644 --- a/src/qemu/qemu_migration.c +++ b/src/qemu/qemu_migration.c @@ -4976,11 +4976,11 @@ qemuMigrationDstFinish(virQEMUDriverPtr driver, bool v3proto) { virDomainPtr dom =3D NULL; - qemuMigrationCookiePtr mig =3D NULL; + g_autoptr(qemuMigrationCookie) mig =3D NULL; virErrorPtr orig_err =3D NULL; int cookie_flags =3D 0; qemuDomainObjPrivatePtr priv =3D vm->privateData; - virQEMUDriverConfigPtr cfg =3D virQEMUDriverGetConfig(driver); + g_autoptr(virQEMUDriverConfig) cfg =3D virQEMUDriverGetConfig(driver); unsigned short port; unsigned long long timeReceived =3D 0; virObjectEventPtr event; @@ -5246,9 +5246,7 @@ qemuMigrationDstFinish(virQEMUDriverPtr driver, qemuMonitorSetDomainLog(priv->mon, NULL, NULL, NULL); VIR_FREE(priv->origname); virDomainObjEndAPI(&vm); - qemuMigrationCookieFree(mig); virErrorRestore(&orig_err); - virObjectUnref(cfg); =20 /* Set a special error if Finish is expected to return NULL as a resul= t of * successful call with retcode !=3D 0 --=20 2.26.2