From nobody Sun Feb 8 10:48:32 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 207.211.31.120 as permitted sender) client-ip=207.211.31.120; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-1.mimecast.com; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.120 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=1595020759; cv=none; d=zohomail.com; s=zohoarc; b=BxHGpNRYH3s1JlF71Ix9OiP3RSl0dBMjSAdB5iJvft9oUswbPqmIuzNfQV2AHOfZedI2mjXipccYRd22YGBJl3AOe47PA0JQLi2qeK5UU8q2joim6MMnHicJ1xHYC76xgJGrZ/+wocDHqPyFy7SsfTNv+aP2ROBghksITkXJsgQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1595020759; 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=i9Q5SHc2UuA6cfp52VvaDzQAIkFVcot/suAKrTZOWk4=; b=X63rrusRNF/1febsZQ/e0wnng8bfn1ELmSyBetall9LxVuB6rYRwWgUraevroitW277/20b2WckyoxXdY6wGhG7fYbsE8yWOoWZyxdusDrPU2EnVlkWmm7W3rOWVA2bL8bkg0mf5GfLqgxUs8fPoGNnDskjvGf5frRa101CvIV4= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.120 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-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) by mx.zohomail.com with SMTPS id 1595020759535763.2714942704151; Fri, 17 Jul 2020 14:19:19 -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-421-hWScp4bOOz6iFinsfJPA8w-1; Fri, 17 Jul 2020 17:19:15 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 314F719067E4; Fri, 17 Jul 2020 21:19:10 +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 0F45217D75; Fri, 17 Jul 2020 21:19:10 +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 D1E9E1809557; Fri, 17 Jul 2020 21:19:09 +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 06HLGG5x019554 for ; Fri, 17 Jul 2020 17:16:16 -0400 Received: by smtp.corp.redhat.com (Postfix) id E8C582166BA4; Fri, 17 Jul 2020 21:16:15 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast04.extmail.prod.ext.rdu2.redhat.com [10.11.55.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id E4B672166BA3 for ; Fri, 17 Jul 2020 21:16:15 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) (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 C03F81012443 for ; Fri, 17 Jul 2020 21:16:15 +0000 (UTC) Received: from mail-qk1-f196.google.com (mail-qk1-f196.google.com [209.85.222.196]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-400-F8NGSJfRMKW92CYYRD2siA-1; Fri, 17 Jul 2020 17:16:13 -0400 Received: by mail-qk1-f196.google.com with SMTP id l6so10047132qkc.6 for ; Fri, 17 Jul 2020 14:16:13 -0700 (PDT) Received: from rekt.ibmuc.com ([2804:431:c7c6:9447:1f8b:580e:61d9:b1a4]) by smtp.gmail.com with ESMTPSA id x19sm11847162qtc.36.2020.07.17.14.16.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Jul 2020 14:16:12 -0700 (PDT) X-MC-Unique: hWScp4bOOz6iFinsfJPA8w-1 X-MC-Unique: F8NGSJfRMKW92CYYRD2siA-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=i9Q5SHc2UuA6cfp52VvaDzQAIkFVcot/suAKrTZOWk4=; b=Az6ZS+24HcX/7OITVHebI+x6cCWfmTh9pp4pouZ+KlEj7l06Anak/lf598AaRIbPXO fjX2H998R2NA7PB1vLSTjjixfD+Chss94BnO7PLkaLmCmRvSDQuqfSpvQrOOPZ+ZoiAl 1bI4VMLjN7EwEbmq183PbGG4W8z8xoVINsiKI83hbt+4wgu3nK24jekD03Yx7ZOOOy3B WoFOXGyp/YRlHx6LYT9OQkkA7Bg9wKBocDJYOEwD2xUsbiEi/R3v0nbRc69bCrN6TOK4 etedP7801XD273ZsnEFNkoiC+iGF96nvEaMgNyv/YvrYkhqAzJSIR0qn8BMFnPbNKw97 4s0Q== X-Gm-Message-State: AOAM53075jcUUExhTk0HxcwcYO8/3njxc26e+qi1vfO/e6nApPJGWTFy au9QTG9mHyOSXF6camzTe+V/HmceTH8= X-Google-Smtp-Source: ABdhPJzqrUx9u2S/wLB5WJRvEKxjUAqQ+rUwb9zOBDJTz7HXnSgEvpS5Nh3ad9HhV43QcANsDnVlZQ== X-Received: by 2002:a37:9ed6:: with SMTP id h205mr10636358qke.384.1595020572650; Fri, 17 Jul 2020 14:16:12 -0700 (PDT) From: Daniel Henrique Barboza To: libvir-list@redhat.com Subject: [PATCH 5/5] qemu_capabilities.c: use g_autoptr() in virQEMUCapsInitQMPSingle() Date: Fri, 17 Jul 2020 18:15:56 -0300 Message-Id: <20200717211556.1024748-6-danielhb413@gmail.com> In-Reply-To: <20200717211556.1024748-1-danielhb413@gmail.com> References: <20200717211556.1024748-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.14 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_capabilities.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c index 98ddd2dcdc..1a2cb874c0 100644 --- a/src/qemu/qemu_capabilities.c +++ b/src/qemu/qemu_capabilities.c @@ -5382,7 +5382,7 @@ virQEMUCapsInitQMPSingle(virQEMUCapsPtr qemuCaps, gid_t runGid, bool onlyTCG) { - qemuProcessQMPPtr proc =3D NULL; + g_autoptr(qemuProcessQMP) proc =3D NULL; int ret =3D -1; =20 if (!(proc =3D qemuProcessQMPNew(qemuCaps->binary, libDir, @@ -5401,7 +5401,6 @@ virQEMUCapsInitQMPSingle(virQEMUCapsPtr qemuCaps, if (ret < 0) virQEMUCapsLogProbeFailure(qemuCaps->binary); =20 - qemuProcessQMPFree(proc); return ret; } =20 --=20 2.26.2