examples/vm_power: fix memory leak
authorRory Sexton <rory.sexton@intel.com>
Wed, 29 Jul 2020 08:37:54 +0000 (09:37 +0100)
committerDavid Marchand <david.marchand@redhat.com>
Fri, 30 Oct 2020 12:16:09 +0000 (13:16 +0100)
commit3ac192b30902094d02842c0877ba91ea0d66fbc2
tree0efd36b50155851bf92115d71e93649fa03141d3
parentf4d2ad3aa9898d3cf1d3039ea18cf63c5ef5753e
examples/vm_power: fix memory leak

Fix memory leak where variable oob_enable can go out of scope leaking
the storage it points to.

Coverity issue: 337674
Fixes: 95f648ff9ee ("examples/vm_power: make branch ratio threshold per core")

Signed-off-by: Rory Sexton <rory.sexton@intel.com>
Acked-by: David Hunt <david.hunt@intel.com>
examples/vm_power_manager/main.c