trace-cmd record: Check allocation of creating path variable The reset->path = strdup(file) should check if the allocation fails. Link: https://lore.kernel.org/20261021162008.3696574a@gandalf.local.home Link: https://bugzilla.kernel.org/show_bug.cgi?id=217126 Reported-by: Markus Elfring <Markus.Elfring@web.de> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>