tools/power/x86/intel-speed-select: Fix memory leak
authorPrarit Bhargava <prarit@redhat.com>
Thu, 5 Sep 2019 12:03:11 +0000 (08:03 -0400)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Sat, 7 Sep 2019 18:19:13 +0000 (21:19 +0300)
commit3bc3d30ca324bfc3045a1a7fe1f5fe5ad5d92fd9
tree7b0f3eb482fab76aae86ea1473bb3c7ab4bf5823
parent522586a9d5c32b5d7569237eebbfd8241f196419
tools/power/x86/intel-speed-select: Fix memory leak

cpumasks are allocated by calling the alloc_cpu_mask() function and are
never free'd.  They should be free'd after the commands have run.

Fix the memory leaks by calling free_cpu_set().

Signed-off-by: Prarit Bhargava <prarit@redhat.com>
Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Cc: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Cc: David Arcari <darcari@redhat.com>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
tools/power/x86/intel-speed-select/isst-config.c