perf evlist: Destructors should accept NULL
authorArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 21 Jun 2016 21:15:45 +0000 (18:15 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 22 Jun 2016 13:01:48 +0000 (10:01 -0300)
commit0b04b3dcdfb9aeb0e83c8ca322bf0830ee51ce38
tree183b7008d41ce1f5feb7c840a2540d93a830e9e6
parent89c7cb2cad5e5e3675df3ba1c12fe2f64dc691d6
perf evlist: Destructors should accept NULL

And do nothing, just like free(), to avoid having to test it in callers,
usually in error paths.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-mexbavy0ft387j5w89t365eu@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-kvm.c
tools/perf/tests/event-times.c
tools/perf/tests/parse-no-sample-id-all.c
tools/perf/util/evlist.c