From nobody Mon Feb 9 03:34:16 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.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 (zoho.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=1573660120; cv=none; d=zoho.com; s=zohoarc; b=BV2u4T6CqC6TXnsP+tYXlDa0y5RKWpYsIa97F0ukIXCRQflVJAPVCPiAPMwYd6pm0GaUB5uWm5vlzuG3gQyym2n8O2bfO/vjy8WkvvVL4fZZEBSv2+lMsO7zqwN+OzFhcuJyQbVA+h5oY4ghltWWTEzo1A51H8Ithr5jG0xQ3NQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1573660120; 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=YP0Vo5HlEYo15ztYd0JmEtQ4QCls0cL+FmSOpKU0Oc8=; b=S9XMcLJ92y/uafIjpZwmxgPaxPg/qsPMMr0h1SjGuU87E5Jv7n377sVsRiKadB+IqEEQIC/+/cARczO203BTEEfkinMh/JVioy7LkZWRkLe8UOyNTjPncUg05K8sM5nQzCJ6KmzO8d1RiXyOHWRvseizssMH0aGk4jzLexaHQF0= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass; spf=pass (zoho.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 1573660120074839.6792533495908; Wed, 13 Nov 2019 07:48:40 -0800 (PST) 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-36-CP-DpXazOAaec_qshOM0jw-1; Wed, 13 Nov 2019 10:48:37 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id C2C468D02D6; Wed, 13 Nov 2019 15:48:23 +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 9636360C88; Wed, 13 Nov 2019 15:48:23 +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 570FB18034EB; Wed, 13 Nov 2019 15:48:23 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id xADFm4hS017617 for ; Wed, 13 Nov 2019 10:48:04 -0500 Received: by smtp.corp.redhat.com (Postfix) id 0F4B010246F6; Wed, 13 Nov 2019 15:48:04 +0000 (UTC) Received: from lpt.redhat.com (ovpn-200-61.brq.redhat.com [10.40.200.61]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6AAAD10246E3 for ; Wed, 13 Nov 2019 15:48:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1573660118; 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=YP0Vo5HlEYo15ztYd0JmEtQ4QCls0cL+FmSOpKU0Oc8=; b=DpZiXkYOEDiTK6rAq2OrrawKUEbh8WlJZJLOkPD2PRldhFhkGurX1LIltcMxG3dH57NPHV jpzikzfKwwxZxnT3asTP7CwIWNwrlVCLA09LGeaNCt2gcDgbnaVtRU+h/Momyz2sBvKUlc O4QO3i7r+k45zKmgbA1LNOVJouNJytg= From: =?UTF-8?q?J=C3=A1n=20Tomko?= To: libvir-list@redhat.com Date: Wed, 13 Nov 2019 16:48:45 +0100 Message-Id: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH 04/12] libxl: use g_autofree in xenParseSxprVifRate 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.12 X-MC-Unique: CP-DpXazOAaec_qshOM0jw-1 X-Mimecast-Spam-Score: 0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" Signed-off-by: J=C3=A1n Tomko Reviewed-by: Peter Krempa --- src/libxl/xen_common.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/libxl/xen_common.c b/src/libxl/xen_common.c index c31a5c952e..c06ab6e995 100644 --- a/src/libxl/xen_common.c +++ b/src/libxl/xen_common.c @@ -1060,7 +1060,7 @@ static const char *vif_bytes_per_sec_re =3D "^[0-9]+[= GMK]?[Bb]/s$"; static int xenParseSxprVifRate(const char *rate, unsigned long long *kbytes_per_sec) { - char *trate =3D NULL; + g_autofree char *trate =3D NULL; char *p; regex_t rec; int err; @@ -1109,7 +1109,6 @@ xenParseSxprVifRate(const char *rate, unsigned long l= ong *kbytes_per_sec) =20 cleanup: regfree(&rec); - VIR_FREE(trate); return ret; } =20 --=20 2.21.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list