[dpdk-dev] [PATCH 05/11] kvargs: rework API to fix memory leak

2014-01-30 Thread Richardson, Bruce
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Olivier Matz > Sent: Tuesday, January 28, 2014 4:07 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH 05/11] kvargs: rework API to fix memory leak > > Before the patch, a call t

[dpdk-dev] [PATCH 05/11] kvargs: rework API to fix memory leak

2014-01-28 Thread Olivier Matz
Before the patch, a call to rte_kvargs_tokenize() resulted in a call to strdup() to allocate a modifiable copy of the argument string. This string was never freed, excepted in the error cases of rte_kvargs_tokenize() where rte_free() was wrongly called instead of free(). In other cases, freeing thi