From: Peter Zijlstra Date: Mon, 10 Aug 2015 12:17:34 +0000 (+0200) Subject: perf/x86/intel: Fix memory leak on hot-plug allocation fail X-Git-Tag: omap-for-v4.3/fixes-merge-window~98^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dbc72b7a0c673ff00fdeb21d3a26064e2185baf4;p=pandora-kernel.git perf/x86/intel: Fix memory leak on hot-plug allocation fail We fail to free the shared_regs allocation if the constraint_list allocation fails. Cure this and be more consistent in NULL-ing the pointers after free. Signed-off-by: Peter Zijlstra (Intel) Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Stephane Eranian Cc: Thomas Gleixner Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed