aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorPan Xinhui <xinhui.pan@linux.vnet.ibm.com>2015-12-09 18:00:53 +0800
committerMichael Ellerman <mpe@ellerman.id.au>2016-09-20 16:15:33 +1000
commit0d0fecc5b5bfddb0e67bef985cdeda2eac7ad6d8 (patch)
treef0cde1a3c27e0f6b43e22e2e86135d50655fff6c /tools/perf/scripts/python/event_analyzing_sample.py
parentpowerpc/64s: Optimise MSR handling in exception handling (diff)
downloadlinux-0d0fecc5b5bfddb0e67bef985cdeda2eac7ad6d8.tar.gz
linux-0d0fecc5b5bfddb0e67bef985cdeda2eac7ad6d8.zip
powerpc/nvram: Fix a memory leak in err path
If kmemdup fails, We need kfree *buff* first then return -ENOMEM. Otherwise there is a memory leak. Signed-off-by: Pan Xinhui <xinhui.pan@linux.vnet.ibm.com> Reviewed-by: Nathan Fontenot <nfont@linux.vnet.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions