examples/power: fix resource leak
authorDavid Hunt <david.hunt@intel.com>
Tue, 9 Apr 2019 09:43:26 +0000 (10:43 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 22 Apr 2019 22:15:10 +0000 (00:15 +0200)
Coverity issue: 337674
Fixes: 99a968fac0cf ("examples/vm_power: add core list parameter")
Cc: stable@dpdk.org
Signed-off-by: David Hunt <david.hunt@intel.com>
examples/vm_power_manager/main.c

index 893bf4c..dd79a82 100644 (file)
@@ -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++) {