Re: [dpdk-dev] [PATCH v3] mem: fix memory leaks of hugedir and replace snprintf

2018-04-18 Thread Burakov, Anatoly
On 18-Apr-18 10:00 AM, Thomas Monjalon wrote: 18/04/2018 05:09, Yangchao Zhou: The hugedir returned by get_hugepage_dir is allocated by strdup but not released. Replace snprintf with a more suitable strlcpy. Coverity issue: 272585 Fixes: cb97d93e9d3b ("mem: share hugepage info primary and sec

Re: [dpdk-dev] [PATCH v3] mem: fix memory leaks of hugedir and replace snprintf

2018-04-18 Thread Thomas Monjalon
18/04/2018 05:09, Yangchao Zhou: > The hugedir returned by get_hugepage_dir is allocated by strdup > but not released. Replace snprintf with a more suitable strlcpy. > > Coverity issue: 272585 > Fixes: cb97d93e9d3b ("mem: share hugepage info primary and secondary") > > Signed-off-by: Yangchao Zh

[dpdk-dev] [PATCH v3] mem: fix memory leaks of hugedir and replace snprintf

2018-04-17 Thread Yangchao Zhou
The hugedir returned by get_hugepage_dir is allocated by strdup but not released. Replace snprintf with a more suitable strlcpy. Coverity issue: 272585 Fixes: cb97d93e9d3b ("mem: share hugepage info primary and secondary") Signed-off-by: Yangchao Zhou Acked-by: Anatoly Burakov --- lib/librte_