From nobody Sun Feb 8 17:13:08 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 205.139.110.120 as permitted sender) client-ip=205.139.110.120; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.120 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=1598334493; cv=none; d=zohomail.com; s=zohoarc; b=J8amL9dS3RTjwzEuun6ydKJME52Bb37Z5/NebNvPdAtFhkwLbqgrQOD6YsVuRAAgkJXhJdD474ei3p+0YEKPpZ3OiAntp3r0XjKumL3CGSMmM2Ha0sXoBw+p1PqSAnsds5GtuH/Uf0O9Ax9YE+yCbLAHQWGEDlLtC41Ba7u9kFs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1598334493; 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=5PLs4bOSJqXq6Iw7ApfdsVSCC102/HwYvdbpjxHQIow=; b=FTI19qNZlsizbdLqjE8RqsPhvFTvTbW4JbBLJpaQP84beHC4+n/OUgdayUUjViHm9Hf9DiCWY8YwE/yYFLh1u0rl/ryaRL7+/Emqy3+T10JMHZHN5EuyT0cXRdirx3ED87e7d/CX/59SAp99VGuHUoIs+w4iTc3Nd9g/2h91aD0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.120 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) by mx.zohomail.com with SMTPS id 1598334493147716.3443355873901; Mon, 24 Aug 2020 22:48:13 -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-172-hgb4IlcyOESr5h3g7DK9Vw-1; Tue, 25 Aug 2020 01:48:10 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id C4423801AF2; Tue, 25 Aug 2020 05:48:03 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id D872F808AA; Tue, 25 Aug 2020 05:48:00 +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 0DCE4181A06D; Tue, 25 Aug 2020 05:47:57 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 07P5lJq0008043 for ; Tue, 25 Aug 2020 01:47:19 -0400 Received: by smtp.corp.redhat.com (Postfix) id 9A77860C13; Tue, 25 Aug 2020 05:47:19 +0000 (UTC) Received: from carol.localdomain (unknown [10.40.192.44]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 6C0DD60C0F for ; Tue, 25 Aug 2020 05:47:16 +0000 (UTC) Received: from carol.redhat.com (carol.k8r.cz [127.0.0.1]) by carol.localdomain (Postfix) with ESMTP id 625A3C20041 for ; Tue, 25 Aug 2020 07:47:15 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1598334491; 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=5PLs4bOSJqXq6Iw7ApfdsVSCC102/HwYvdbpjxHQIow=; b=LIxWpoaY3hjpGirb78eocAO99XZhWvcjOw2ym8nhFnOQY0G6xZBH9QbQJiYidF/cLi2m56 uJXwxKmJEFjOdU5CDMBZWE77gmRqSpPCUH5tS27bNzjcIGWKCnz+iZXlRfoToZwVBcXrQi Iqwu5k1SeiXxTOrgCuA8+fohvpm8ZzM= X-MC-Unique: hgb4IlcyOESr5h3g7DK9Vw-1 From: Martin Kletzander To: libvir-list@redhat.com Subject: [libvirt PATCH 1/9] qemu: Use g_autofree in qemuMigrationSrcConnect Date: Tue, 25 Aug 2020 07:47:07 +0200 Message-Id: <5446102a5004c366d2b62f9145a5641d923bc6ba.1598334399.git.mkletzan@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Clacks-Overhead: GNU Terry Pratchett X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-loop: libvir-list@redhat.com 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.15 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0.001 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" Signed-off-by: Martin Kletzander Reviewed-by: Jiri Denemark --- src/qemu/qemu_migration.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/qemu/qemu_migration.c b/src/qemu/qemu_migration.c index 142faa2cf997..60ddfde65d46 100644 --- a/src/qemu/qemu_migration.c +++ b/src/qemu/qemu_migration.c @@ -3369,7 +3369,7 @@ qemuMigrationSrcConnect(virQEMUDriverPtr driver, { virNetSocketPtr sock; const char *host; - char *port =3D NULL; + g_autofree char *port =3D NULL; int ret =3D -1; =20 host =3D spec->dest.host.name; @@ -3400,7 +3400,6 @@ qemuMigrationSrcConnect(virQEMUDriverPtr driver, ret =3D 0; =20 cleanup: - VIR_FREE(port); if (ret < 0) VIR_FORCE_CLOSE(spec->dest.fd.qemu); return ret; --=20 2.28.0