From da4ac8e5991a05d06a1e009a83c232dd824eac77 Mon Sep 17 00:00:00 2001 From: David Hunt Date: Tue, 9 Apr 2019 10:43:26 +0100 Subject: [PATCH] examples/power: fix resource leak Coverity issue: 337674 Fixes: 99a968fac0cf ("examples/vm_power: add core list parameter") Cc: stable@dpdk.org Signed-off-by: David Hunt --- 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 893bf4cdd8..dd79a82fae 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.20.1