[dpdk-dev] [PATCH v2] crypto: fix memory leak

Mcnamara, John john.mcnamara at intel.com
Mon Jul 18 15:00:14 CEST 2016



> -----Original Message-----
> From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Pablo de Lara
> Sent: Monday, July 18, 2016 1:47 PM
> To: dev at dpdk.org
> Cc: Doherty, Declan <declan.doherty at intel.com>; Pattan, Reshma
> <reshma.pattan at intel.com>; De Lara Guarch, Pablo
> <pablo.de.lara.guarch at intel.com>
> Subject: [dpdk-dev] [PATCH v2] crypto: fix memory leak
>
> ...
>
>  free_kvlist:
> -	rte_kvargs_free(kvlist);
> +	if (kvlist != NULL)
> +		rte_kvargs_free(kvlist);
>  	return ret;

The test against NULL isn't required, that is done in rte_kvargs_free() anyway.




More information about the dev mailing list