From nobody Sat Feb 7 05:30:57 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 207.211.31.81 as permitted sender) client-ip=207.211.31.81; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.81 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1586782171; cv=none; d=zohomail.com; s=zohoarc; b=GqEgcWvJLFnQh2t0zvgkd3q3dD2PnXKgZVq0aktXaAxXXNgRRi+RLShSXQtm8PkgvxlZ9CjOJWUDfoNGJ5Kahk2xbrSQ4yXsRmUFCpfvHcxdzeONz0yfgdak8WjTgffjJ/GM4oDkhUjQt8KW5hcl7OkU6I0g5huNQijNmx3Fu/8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1586782171; 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=NinsboiDrhkUB/aDI5tqpm9WIiZuWHMUKvYQgLlZAEo=; b=QbFOfDeIZKlR7fwgLkVnjuMrBZgGX2JNKwW4PkZE+pSqBWF17SDittF3XHVP6cvOOf6UEKvwEPtUnlG8AYXrnZ2ecs9j908a/Pv9LY9Iw8hnTxWyFxSmLGzRep6pumOx0jBgmFddREudJFJDALKa+9YDhNoYLSjGR0Zrtsg06JU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.81 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com Return-Path: Received: from us-smtp-delivery-1.mimecast.com (us-smtp-2.mimecast.com [207.211.31.81]) by mx.zohomail.com with SMTPS id 158678217156423.29261942386927; Mon, 13 Apr 2020 05:49:31 -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-341-oL0hcHiMMVeLY84vEezo8g-1; Mon, 13 Apr 2020 08:49:28 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 64AF418B5FA9; Mon, 13 Apr 2020 12:49:22 +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 C2AD5272A0; Mon, 13 Apr 2020 12:49:20 +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 08B3518089CD; Mon, 13 Apr 2020 12:49:15 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 03DCnDC1003492 for ; Mon, 13 Apr 2020 08:49:14 -0400 Received: by smtp.corp.redhat.com (Postfix) id C0FB6B350B; Mon, 13 Apr 2020 12:49:13 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast01.extmail.prod.ext.rdu2.redhat.com [10.11.55.17]) by smtp.corp.redhat.com (Postfix) with ESMTPS id BD293B5507 for ; Mon, 13 Apr 2020 12:49:11 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-1.mimecast.com [207.211.31.81]) (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 06936800F2F for ; Mon, 13 Apr 2020 12:49:11 +0000 (UTC) Received: from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-357-MzuA07rRP-KElokjSBSTzQ-1; Mon, 13 Apr 2020 08:49:08 -0400 Received: from pps.filterd (m0098421.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 03DCYQtv078579 for ; Mon, 13 Apr 2020 08:49:07 -0400 Received: from e06smtp07.uk.ibm.com (e06smtp07.uk.ibm.com [195.75.94.103]) by mx0a-001b2d01.pphosted.com with ESMTP id 30b9vtbqjh-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 13 Apr 2020 08:49:07 -0400 Received: from localhost by e06smtp07.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 13 Apr 2020 13:49:02 +0100 Received: from b06cxnps3074.portsmouth.uk.ibm.com (9.149.109.194) by e06smtp07.uk.ibm.com (192.168.101.137) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Mon, 13 Apr 2020 13:49:00 +0100 Received: from d06av23.portsmouth.uk.ibm.com (d06av23.portsmouth.uk.ibm.com [9.149.105.59]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 03DCn3nN66257114 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 13 Apr 2020 12:49:03 GMT Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B9FF8A4053; Mon, 13 Apr 2020 12:49:03 +0000 (GMT) Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id CC638A4040; Mon, 13 Apr 2020 12:49:02 +0000 (GMT) Received: from oc2388111647.ibm.com (unknown [9.85.91.210]) by d06av23.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Mon, 13 Apr 2020 12:49:02 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1586782170; 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=NinsboiDrhkUB/aDI5tqpm9WIiZuWHMUKvYQgLlZAEo=; b=aa634DqTWpH5eGFNyfRm8W2EW58E4DvLLekmbO7uUkoHZZe5fsE+KEL0b6nuuf6hg5mGsI /LJwuMcgbNPCM7OhZ/k3DcaBCmns75UN3e51pcTIvWXE5ji5LbDCee11j0Wz/UNs1Bh6gG FyQk4Yp/IluUavFCcG+AfOIufnE2DGo= X-MC-Unique: oL0hcHiMMVeLY84vEezo8g-1 X-MC-Unique: MzuA07rRP-KElokjSBSTzQ-1 From: Seeteena Thoufeek To: libvir-list@redhat.com Subject: [PATCH] driver.c: Use g_autofree Date: Mon, 13 Apr 2020 18:18:57 +0530 X-TM-AS-GCONF: 00 x-cbid: 20041312-0028-0000-0000-000003F77006 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 20041312-0029-0000-0000-000024BD186B Message-Id: <1586782137-32658-1-git-send-email-s1seetee@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138, 18.0.676 definitions=2020-04-13_05:2020-04-13, 2020-04-13 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 bulkscore=0 spamscore=0 impostorscore=0 adultscore=0 lowpriorityscore=0 suspectscore=3 malwarescore=0 priorityscore=1501 phishscore=0 mlxlogscore=766 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2004130090 X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-MIME-Autoconverted: from quoted-printable to 8bit by lists01.pubmisc.prod.ext.phx2.redhat.com id 03DCnDC1003492 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.84 on 10.5.11.23 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 driver.c Signed-off-by: Seeteena Thoufeek Reviewed-by: Erik Skultety --- src/driver.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/driver.c b/src/driver.c index a2047be..e745210 100644 --- a/src/driver.c +++ b/src/driver.c @@ -48,7 +48,7 @@ virDriverLoadModule(const char *name, const char *regfunc, bool required) { - char *modfile =3D NULL; + g_autofree char *modfile =3D NULL; int ret; =20 VIR_DEBUG("Module load %s", name); @@ -62,9 +62,6 @@ virDriverLoadModule(const char *name, return -1; =20 ret =3D virModuleLoad(modfile, regfunc, required); - - VIR_FREE(modfile); - return ret; } =20 --=20 1.8.3.1