From 981d05adf2e2acc328abb929a6ed3536c0d41c5f Mon Sep 17 00:00:00 2001 From: Masami Hiramatsu Date: Thu, 16 Jan 2014 09:39:44 +0000 Subject: [PATCH] perf probe: Release allocated probe_trace_event if failed To fix a memory leak, release all allocated probe_trace_event on the error path of try_to_find_probe_trace_events. Reported-by: David Ahern Signed-off-by: Masami Hiramatsu Cc: "David A. Long" Cc: "Steven Rostedt (Red Hat)" Cc: David Ahern Cc: Ingo Molnar Cc: Namhyung Kim Cc: Oleg Nesterov Cc: Srikar Dronamraju Cc: yrl.pp-manager.tt@hitachi.com Link: http://lkml.kernel.org/r/20140116093944.24403.30228.stgit@kbuild-fedora.novalocal Signed-off-by: Arnaldo Carvalho de Melo --- Reading git-format-patch failed