From nobody Fri Mar 29 15:35:29 2024 Delivered-To: importer@patchew.org Received-SPF: none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org ARC-Seal: i=1; a=rsa-sha256; t=1565175971; cv=none; d=zoho.com; s=zohoarc; b=ZOdWS/hAQjmLsFocM6hDtvpe0Q3XWrLDcviKaihafG/lTEU+qugQ98abeAHn+eaZc8iaWH3MgAeK64mTxfyorBoaIURuVGKxpJUYtT+gh3maAh5DaYlXrQadpduypSY7FfMmwcoXQIJgoZ6LOTzpxeZlHrwJihuO8xSscVarOiM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1565175971; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To:ARC-Authentication-Results; bh=jXo4YHXldO42lo1H3jkEcG8GR1YL3/wNaBYXS8XrSps=; b=m0ZlU3UxsbzjGfv0BLpjbp3t7vIPRaW+ztAbVALh1KMByxFzOrJ6KVm6f7xfL5GJgTDkIeUlsCiVYAlm90/MfMJoiqy55uGQq6RL/EqlCHMMWRGZD+fKRPazdQi12Ckfpa8iytep4Wt6wi5OO9HS+2Qry4gyt1m+0s5NUtfQQMs= ARC-Authentication-Results: i=1; mx.zoho.com; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1565175971548439.1383721530044; Wed, 7 Aug 2019 04:06:11 -0700 (PDT) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hvJkV-0008El-Hg; Wed, 07 Aug 2019 11:04:55 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hvJkU-0008Eg-DE for xen-devel@lists.xenproject.org; Wed, 07 Aug 2019 11:04:54 +0000 Received: from mx1.suse.de (unknown [195.135.220.15]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id 2e66f988-b903-11e9-84bf-1f595918deac; Wed, 07 Aug 2019 11:04:53 +0000 (UTC) Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 2F465AD3A; Wed, 7 Aug 2019 11:04:52 +0000 (UTC) X-Inumbo-ID: 2e66f988-b903-11e9-84bf-1f595918deac X-Virus-Scanned: by amavisd-new at test-mx.suse.de From: Juergen Gross To: xen-devel@lists.xenproject.org Date: Wed, 7 Aug 2019 13:04:49 +0200 Message-Id: <20190807110449.2947-1-jgross@suse.com> X-Mailer: git-send-email 2.16.4 Subject: [Xen-devel] [PATCH] xen/sched: fix memory leak in credit2 X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Juergen Gross , George Dunlap , Dario Faggioli MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" csched2_deinit() is leaking the run-queue memory. Signed-off-by: Juergen Gross Acked-by: Dario Faggioli --- xen/common/sched_credit2.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xen/common/sched_credit2.c b/xen/common/sched_credit2.c index 6fff210ca6..6b77da7476 100644 --- a/xen/common/sched_credit2.c +++ b/xen/common/sched_credit2.c @@ -4070,6 +4070,8 @@ csched2_deinit(struct scheduler *ops) =20 prv =3D csched2_priv(ops); ops->sched_data =3D NULL; + if ( prv ) + xfree(prv->rqd); xfree(prv); } =20 --=20 2.16.4 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel