[dpdk-stable] [PATCH v1] examples/power: fix vm power manager resource leak

David Hunt david.hunt at intel.com
Tue Apr 9 11:43:26 CEST 2019


Fixes: 99a968fac0cf ("examples/vm_power: add core list parameter")
    Coverity issue: 337674

Signed-off-by: David Hunt <david.hunt at intel.com>
---
 examples/vm_power_manager/main.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/examples/vm_power_manager/main.c b/examples/vm_power_manager/main.c
index 893bf4cdd..dd79a82fa 100644
--- a/examples/vm_power_manager/main.c
+++ b/examples/vm_power_manager/main.c
@@ -175,6 +175,7 @@ parse_args(int argc, char **argv)
 			if (cnt < 0) {
 				printf("Invalid core-list - [%s]\n",
 						optarg);
+				free(oob_enable);
 				break;
 			}
 			for (i = 0; i < ci->core_count; i++) {
-- 
2.17.1



More information about the stable mailing list