summaryrefslogtreecommitdiffstats
path: root/drivers/base
diff options
context:
space:
mode:
authorMasami Hiramatsu <masami.hiramatsu.pt@hitachi.com>2015-11-13 12:29:10 +0000
committerArnaldo Carvalho de Melo <acme@redhat.com>2015-11-13 12:24:32 -0300
commit0196e787ceb58cdfea822482ec70019bc16cbd51 (patch)
tree7da102222263c83f0522e71bc7ac2cad7d12aa49 /drivers/base
parentd8145b3e30a24280c396d88c8703c50a1ea0aa3a (diff)
downloadlinux-0196e787ceb58cdfea822482ec70019bc16cbd51.tar.gz
linux-0196e787ceb58cdfea822482ec70019bc16cbd51.tar.bz2
linux-0196e787ceb58cdfea822482ec70019bc16cbd51.zip
perf probe: Fix memory leaking on failure by clearing all probe_trace_events
Fix memory leaking on the debuginfo__find_trace_events() failure path which frees an array of probe_trace_events but doesn't clears all the allocated sub-structures and strings. So, before doing zfree(tevs), clear all the array elements which may have allocated resources. Reported-by: Wang Nan <wangnan0@huawei.com> Signed-off-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com> Cc: Alexei Starovoitov <ast@kernel.org> Cc: Zefan Li <lizefan@huawei.com> Cc: pi3orama@163.com Link: http://lkml.kernel.org/r/1447417761-156094-2-git-send-email-wangnan0@huawei.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'drivers/base')
0 files changed, 0 insertions, 0 deletions