numam-dpdk/lib/librte_eal
Yangchao Zhou fb338b80e5 mem: fix leaks of hugedir and replace snprintf
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: cb97d93e9d ("mem: share hugepage info primary and secondary")

Signed-off-by: Yangchao Zhou <zhouyates@gmail.com>
Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
2018-04-18 10:58:10 +02:00
..
bsdapp mem: fix leaks of hugedir and replace snprintf 2018-04-18 10:58:10 +02:00
common eal/x86: force inlining of memcpy sub-functions 2018-04-18 09:22:56 +02:00
linuxapp mem: fix leaks of hugedir and replace snprintf 2018-04-18 10:58:10 +02:00
Makefile lib: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
meson.build eal: provide API for querying valid socket ids 2018-04-05 00:27:13 +02:00
rte_eal_version.map eal: add device event monitor framework 2018-04-13 12:00:31 +02:00