kernel_samsung_a53x/tools/lib/subcmd
Ian Rogers 671ae37d41 libsubcmd: Fix parse-options memory leak
[ Upstream commit 230a7a71f92212e723fa435d4ca5922de33ec88a ]

If a usage string is built in parse_options_subcommand, also free it.

Fixes: 901421a5bdf605d2 ("perf tools: Remove subcmd dependencies on strbuf")
Signed-off-by: Ian Rogers <irogers@google.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Josh Poimboeuf <jpoimboe@kernel.org>
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://lore.kernel.org/r/20240509052015.1914670-1-irogers@google.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-19 12:27:05 +01:00
..
Build Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exec-cmd.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exec-cmd.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
help.c libsubcmd: Fix memory leak in uniq() 2024-11-18 12:13:20 +01:00
help.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pager.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pager.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
parse-options.c libsubcmd: Fix parse-options memory leak 2024-11-19 12:27:05 +01:00
parse-options.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
run-command.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
run-command.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sigchain.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sigchain.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
subcmd-config.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
subcmd-config.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
subcmd-util.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00