Re: [PATCH v3] trace-cmd: Check all strdup() return values
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- Subject: Re: [PATCH v3] trace-cmd: Check all strdup() return values
- From: Steven Rostedt <rostedt@xxxxxxxxxxx>
- Date: Sat, 3 Jun 2023 12:14:00 -0400
- Cc: linux-trace-devel@xxxxxxxxxxxxxxx, cocci@xxxxxxxx
- In-reply-to: <8b23bb42-0b20-850f-b155-c407b671fdda@web.de>
- References: <20230603054450.1e83841a@rorschach.local.home> <8b23bb42-0b20-850f-b155-c407b671fdda@web.de>
On Sat, 3 Jun 2023 13:20:37 +0200
Markus Elfring <Markus.Elfring@xxxxxx> wrote:
> …
> > +++ b/lib/trace-cmd/trace-output.c
> > @@ -230,6 +230,7 @@ void tracecmd_set_out_clock(struct tracecmd_output *handle, const char *clock)
> > if (handle && clock) {
> > free(handle->trace_clock);
> > handle->trace_clock = strdup(clock);
> > + /* TODO: report error if failed to allocate */
> > }
> > }
>
> How will this place be improved?
Bah. This patch is not worth the pain. I'm just going to drop it.
-- Steve
[Index of Archives]
[Linux USB Development]
[Linux USB Development]
[Linux Audio Users]
[Yosemite Hiking]
[Linux Kernel]
[Linux SCSI]