[PATCH perf/core v3 7/8] perf help: Do not use ALLOC_GROW in add_cmd_list

2016-05-09 Thread Masami Hiramatsu
Replace ALLOC_GROW with normal realloc code in add_cmd_list() so that it can handle errors directly. Signed-off-by: Masami Hiramatsu --- tools/perf/util/help-unknown-cmd.c | 30 ++ 1 file changed, 22 insertions(+), 8 deletions(-) diff --git

[PATCH perf/core v3 7/8] perf help: Do not use ALLOC_GROW in add_cmd_list

2016-05-09 Thread Masami Hiramatsu
Replace ALLOC_GROW with normal realloc code in add_cmd_list() so that it can handle errors directly. Signed-off-by: Masami Hiramatsu --- tools/perf/util/help-unknown-cmd.c | 30 ++ 1 file changed, 22 insertions(+), 8 deletions(-) diff --git