[dpdk-dev] [PATCH] power: fix resource leak

Pattan, Reshma reshma.pattan at intel.com
Wed Apr 14 11:24:51 CEST 2021



> -----Original Message-----
> From: Burakov, Anatoly <anatoly.burakov at intel.com>
>  		base_max_ratio =
>  			strtoul(buf_base, NULL,
> POWER_CONVERT_TO_DECIMAL)
>  				/ BUS_FREQ;
> +		/* not needed any more */
> +		fclose(f_base_max);
> +		f_base_max = NULL;

Should this be moved before FOPS_OR_NULL_GOTO() call ?



More information about the dev mailing list