From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] libs/power: fix the resource leaking issue Date: Thu, 17 Jan 2019 18:26:12 +0100 Message-ID: <8559866.tXW0UHnbt0@xps> References: <1545996779-4098-1-git-send-email-liang.j.ma@intel.com> <20190115100137.47470-1-david.hunt@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, lei.a.yao@intel.com To: David Hunt , liang.j.ma@intel.com Return-path: Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) by dpdk.org (Postfix) with ESMTP id 04058316B for ; Thu, 17 Jan 2019 18:26:17 +0100 (CET) In-Reply-To: <20190115100137.47470-1-david.hunt@intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 15/01/2019 11:01, David Hunt: > From: Liang Ma > > Fixes: e6c6dc0f96c8 ("power: add p-state driver compatibility") > Coverity issue: 328528 > > v2: focus just on the resource leak. Remove additional code around > Turbo Boost frequency handling. > > Signed-off-by: Liang Ma > Reviewed-by: Lei Yao > Tested-by: Lei Yao > Signed-off-by: David Hunt > --- > --- a/lib/librte_power/power_pstate_cpufreq.c > +++ b/lib/librte_power/power_pstate_cpufreq.c > f_max = fopen(fullpath_max, "rw+"); > + > + if (f_max == NULL) > + fclose(f_min); No need to insert a blank line before "if". Removing on apply. Applied, thanks