aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/traceevent/plugin_function.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <[email protected]>2013-12-26 20:41:15 +0000
committerArnaldo Carvalho de Melo <[email protected]>2013-12-27 18:17:00 +0000
commit046625231a0397f1776eb353a4ec9ff142cd2f6b (patch)
tree6ce7ab043539d2432b135bc61f39febb3a032039 /tools/lib/traceevent/plugin_function.c
parentperf tools: No need to test against NULL before calling free() (diff)
downloadkernel-046625231a0397f1776eb353a4ec9ff142cd2f6b.tar.gz
kernel-046625231a0397f1776eb353a4ec9ff142cd2f6b.zip
perf tools: Introduce zfree
For the frequent idiom of: free(ptr); ptr = NULL; Make it expect a pointer to the pointer being freed, so that it becomes clear at first sight that the variable being freed is being modified. Cc: Adrian Hunter <[email protected]> Cc: David Ahern <[email protected]> Cc: Frederic Weisbecker <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Mike Galbraith <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Paul Mackerras <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Stephane Eranian <[email protected]> Link: http://lkml.kernel.org/n/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/lib/traceevent/plugin_function.c')
0 files changed, 0 insertions, 0 deletions