perf help: Do not use ALLOC_GROW in add_cmd_list
authorMasami Hiramatsu <mhiramat@kernel.org>
Tue, 10 May 2016 05:47:53 +0000 (14:47 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 10 May 2016 14:58:09 +0000 (11:58 -0300)
commit682f4f035e0fcffce511fe77a02a0f19f0996d70
tree49c08883b388f288ca914031618098ced5bf7785
parent11db4e29bb50442ecef2173f325b7be4e7790025
perf help: Do not use ALLOC_GROW in add_cmd_list

Replace ALLOC_GROW with normal realloc code in add_cmd_list() so that it
can handle errors directly.

Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20160510054752.6158.30562.stgit@devbox
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/help-unknown-cmd.c