From: David Hunt Date: Tue, 9 Apr 2019 09:43:26 +0000 (+0100) Subject: examples/power: fix resource leak X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=da4ac8e5991a05d06a1e009a83c232dd824eac77;p=dpdk.git 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 --- 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++) {