From nobody Sun May 5 23:06:43 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 63.128.21.74 as permitted sender) client-ip=63.128.21.74; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-74.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.74 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1585228600; cv=none; d=zohomail.com; s=zohoarc; b=OofkW58Sn/86nvNYRDM9irJ+5UxoCuNuYxClqOR6RSaGjQyKfa8IWsNn1GASVtepKPXYV1zauzgozuKRIvy6ResEM3maAOJ0vOZQ+DLPgSlDeMaCAjFF+yR/T0s/4l9NdLUcAJ2A4cFENDQVJVGgTdCehCjv52rfuvnASC4HlWs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1585228600; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:Sender:Subject:To; bh=3LDUpM1sJltYi7VZ8DJoHYoL32lIgZuamZ4/hi5rBIc=; b=e7ytOydxJS7Z0GuSkNe2hhqw5lO4ryLvdoSirAnBfV9SPO7XID5G4ucGCac0/wmMzctyEdS2uki9lBUc1BVjj/kEwN1y+HtF5r0udmUx7vxPgbwE+fwL6InX86irl5y62YSd/l3EhOHvT/0uCKFwBWxWoUK9nsM+UGQgIHD2R6A= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.74 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com Return-Path: Received: from us-smtp-delivery-74.mimecast.com (us-smtp-delivery-74.mimecast.com [63.128.21.74]) by mx.zohomail.com with SMTPS id 1585228600856821.0309974964789; Thu, 26 Mar 2020 06:16:40 -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-184-5DZVL8TTOTanUu5hmGKK2g-1; Thu, 26 Mar 2020 09:16:37 -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 659AD8017CC; Thu, 26 Mar 2020 13:16:31 +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 0E2035D9CD; Thu, 26 Mar 2020 13:16:30 +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 4BD368A020; Thu, 26 Mar 2020 13:16:28 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 02QDEJhS024207 for ; Thu, 26 Mar 2020 09:14:19 -0400 Received: by smtp.corp.redhat.com (Postfix) id 531F41005E24; Thu, 26 Mar 2020 13:14:19 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast02.extmail.prod.ext.rdu2.redhat.com [10.11.55.18]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 4EC591006B1E for ; Thu, 26 Mar 2020 13:14:16 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.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 74C958007D9 for ; Thu, 26 Mar 2020 13:14:16 +0000 (UTC) Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-145-ebTLHwUjOBWqB2jixjmSUg-1; Thu, 26 Mar 2020 09:14:13 -0400 Received: from pps.filterd (m0098396.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 02QD3qnr051666 for ; Thu, 26 Mar 2020 09:14:11 -0400 Received: from e06smtp02.uk.ibm.com (e06smtp02.uk.ibm.com [195.75.94.98]) by mx0a-001b2d01.pphosted.com with ESMTP id 2ywd8fry44-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 26 Mar 2020 09:14:10 -0400 Received: from localhost by e06smtp02.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 26 Mar 2020 13:14:04 -0000 Received: from b06avi18878370.portsmouth.uk.ibm.com (9.149.26.194) by e06smtp02.uk.ibm.com (192.168.101.132) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Thu, 26 Mar 2020 13:14:02 -0000 Received: from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com [9.149.105.58]) by b06avi18878370.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 02QDE5DY28836178 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 26 Mar 2020 13:14:05 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 2A1764C05E; Thu, 26 Mar 2020 13:14:05 +0000 (GMT) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 849A54C052; Thu, 26 Mar 2020 13:14:04 +0000 (GMT) Received: from oc2388111647.ibm.com (unknown [9.85.99.249]) by d06av22.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Thu, 26 Mar 2020 13:14:04 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1585228599; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=3LDUpM1sJltYi7VZ8DJoHYoL32lIgZuamZ4/hi5rBIc=; b=NQpHnjMhUKx9XVk2VW4d4vNYLrMkq0kkoLQ0LcwqGbfsMIplMQtPd3a2FPa5OMe2Gc3Nid XzRI/MMQXzjOrExOqCdmP/ZKvkeKQ2xkRua7mARS7v8MFAzNyY7rXzM+vdi8+fxnrDUpo0 CJj0PARxQUpNRjWGhAhIjX5UXY+fqHY= X-MC-Unique: 5DZVL8TTOTanUu5hmGKK2g-1 X-MC-Unique: ebTLHwUjOBWqB2jixjmSUg-1 From: Seeteena Thoufeek To: libvir-list@redhat.com Subject: [PATCH] qemu_agent.c: Use g_autofree in qemu_agent.c Date: Thu, 26 Mar 2020 18:44:01 +0530 X-TM-AS-GCONF: 00 x-cbid: 20032613-0008-0000-0000-00000364A876 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 20032613-0009-0000-0000-00004A861D93 Message-Id: <1585228441-30552-1-git-send-email-s1seetee@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138, 18.0.645 definitions=2020-03-26_03:2020-03-26, 2020-03-26 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 suspectscore=3 malwarescore=0 mlxlogscore=602 spamscore=0 lowpriorityscore=0 phishscore=0 adultscore=0 priorityscore=1501 bulkscore=0 impostorscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2003260100 X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-MIME-Autoconverted: from quoted-printable to 8bit by lists01.pubmisc.prod.ext.phx2.redhat.com id 02QDEJhS024207 X-loop: libvir-list@redhat.com Cc: s1seetee@linux.vnet.ibm.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.14 X-Mimecast-Spam-Score: 2 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" This is the only instance of g_autofree change applicable for qemu_agent.c Signed-off-by: Seeteena Thoufeek --- src/qemu/qemu_agent.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/qemu/qemu_agent.c b/src/qemu/qemu_agent.c index 95a7d9b..c74bd0e 100644 --- a/src/qemu/qemu_agent.c +++ b/src/qemu/qemu_agent.c @@ -1083,7 +1083,7 @@ qemuAgentCommandFull(qemuAgentPtr agent, { int ret =3D -1; qemuAgentMessage msg; - char *cmdstr =3D NULL; + g_autofree char *cmdstr =3D NULL; int await_event =3D agent->await_event; =20 *reply =3D NULL; @@ -1133,7 +1133,6 @@ qemuAgentCommandFull(qemuAgentPtr agent, ret =3D qemuAgentCheckError(cmd, *reply, report_unsupported); =20 cleanup: - VIR_FREE(cmdstr); VIR_FREE(msg.txBuffer); agent->await_event =3D QEMU_AGENT_EVENT_NONE; =20 --=20 1.8.3.1