microcode/amd: fix memory leak
authorChao Gao <chao.gao@intel.com>
Wed, 28 Aug 2019 14:52:18 +0000 (16:52 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 28 Aug 2019 14:52:18 +0000 (16:52 +0200)
commitde45e3ff37bb1602796054afabfa626ea5661c45
tree9c3a1229ec560ee40cf1bfae336e541123d25da4
parent10279e35609ba590b86308a83400b3161f5c7157
microcode/amd: fix memory leak

Two buffers, '->equiv_cpu_table' and '->mpb',  inside 'mc_amd' might be
allocated and in the error-handing path they are not freed properly.

Signed-off-by: Chao Gao <chao.gao@intel.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/microcode_amd.c