Files
linux/tools
Namhyung Kim cd589eba99 perf kvm: Kill STRDUP_FAIL_EXIT()
It's used to pass command line options to a copied argv.  But there's no
reason to make the copies as it's all used in the same function.  It can
simply use stack variables.

In fact, it fixes a subtle double free issue.  As parse_options() can
move contents in argv[], some entries may point to the same item.  So
freeing all items in the argv could trigger a double free.  With stack
variables, we don't need to allocate and free them.

Tested-by: Ian Rogers <irogers@google.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
2026-07-03 13:40:24 -07:00
..
2026-03-04 11:22:05 +01:00
2026-04-14 04:43:26 +00:00
2026-07-03 13:40:24 -07:00