From nobody Sat May 4 12:14:56 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) client-ip=216.205.24.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mx.zohomail.com with SMTPS id 1613409796601823.7683411196654; Mon, 15 Feb 2021 09:23:16 -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-331-h2x0cYaqNaKroDkitY70Zw-1; Mon, 15 Feb 2021 12:23:13 -0500 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 38AA5EC1A4; Mon, 15 Feb 2021 17:23:07 +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 173CB5D9D3; Mon, 15 Feb 2021 17:23:07 +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 DD1324EE76; Mon, 15 Feb 2021 17:23:05 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 11FHLu7D000558 for ; Mon, 15 Feb 2021 12:21:56 -0500 Received: by smtp.corp.redhat.com (Postfix) id 17F457046A; Mon, 15 Feb 2021 17:21:56 +0000 (UTC) Received: from antique-work.lan (unknown [10.40.192.13]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7F25F6A252 for ; Mon, 15 Feb 2021 17:21:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1613409795; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=q1lSprwfmcdPGmUWYKSMiCdvA4DCmqrdAVAot7ap428=; b=HCQ6/m/tNL/W4rO3c8ns6kBdXO7A/GfB9RYPt2hHoRKmigpEXRpqUec0abuYR+EPgzrZ9H f66JGITlwFfhoiTnFQ9sSd0+xkudwW1Y439KtwO2WD4Q/2n4dBoVJdpy5PyltipdFfF5Bd V2x7DxKzuCt8eVfR8KNlndmvieeHxFU= X-MC-Unique: h2x0cYaqNaKroDkitY70Zw-1 From: Pavel Hrdina To: libvir-list@redhat.com Subject: [libvirt PATCH] vircgroup: correctly free nested virCgroupPtr Date: Mon, 15 Feb 2021 18:21:51 +0100 Message-Id: <07a5393ea0b57e849267be5ae08fe190d6d94fbc.1613409701.git.phrdina@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 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.14 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" Fixes: 184245f53b94fc84f727eb6e8a2aa52df02d69c0 Signed-off-by: Pavel Hrdina Reviewed-by: Daniel Henrique Barboza --- src/util/vircgroup.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/util/vircgroup.c b/src/util/vircgroup.c index 57e18d6f38..abc06b8cb0 100644 --- a/src/util/vircgroup.c +++ b/src/util/vircgroup.c @@ -3770,7 +3770,8 @@ virCgroupFree(virCgroupPtr group) g_free(group->unified.mountPoint); g_free(group->unified.placement); g_free(group->unitName); - g_free(group->nested); + + virCgroupFree(group->nested); =20 g_free(group); } --=20 2.29.2