eal: fix memory leak when saving arguments
authorConor Walsh <conor.walsh@intel.com>
Wed, 1 Sep 2021 09:38:47 +0000 (09:38 +0000)
committerDavid Marchand <david.marchand@redhat.com>
Thu, 16 Sep 2021 20:24:54 +0000 (22:24 +0200)
commit4777674c4428f528fa2890d8afab551f6dd54c24
treec2a7e338efbedab566a0a2b98b119cac21c4667e
parente7ef133d77433438ac506416a72dfab2914f1796
eal: fix memory leak when saving arguments

This patch fixes a memleak which was reported in Bugzilla within the
eal_save_args function. This was caused by the function mistakenly
adding -- to the eal args instead of breaking beforehand.

Bugzilla ID: 722
Fixes: 293c53d8b23c ("eal: add telemetry callbacks")

Reported-by: Zhihong Peng <zhihongx.peng@intel.com>
Signed-off-by: Conor Walsh <conor.walsh@intel.com>
Signed-off-by: Conor Fogarty <conor.fogarty@intel.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
lib/eal/common/eal_common_options.c