commit | e6146c645b199700dab4f338aeee1de47aa3b7ab | [log] [tgz] |
---|---|---|
author | Li, Haicheng <haicheng.li@intel.com> | Wed Jul 08 10:57:41 2009 +0800 |
committer | Huang Ying <ying.huang@intel.com> | Wed Jul 08 12:53:22 2009 +0800 |
tree | 9b360efce637a2941201a23f52096a409fbbd7ee | |
parent | 47886610f982190f20c2aa63eb30f1a03976f0ef [diff] |
Fix a memory leak about cpu_mce and cpu_map There is a memory leak if a lot of MCEs are assigned to same CPU with mce_flags set with MCE_HOLD. Current implementation will directly replace cpu_mce[cpu_idex] with new-coming mce without freeing old mce memory. This patch fixes this memory leak issue, as well as adds a cleanup of dynamically allocated memory when program ends up. Signed-off-by: Haicheng Li <haicheng.li@intel.com> Acked-by: Huang Ying <ying.huang@intel.com>