Re: [PATCH 02/17] tools lib traceevent: Check return value ofrealloc()

From: Steven Rostedt
Date: Tue Jan 14 2014 - 21:03:59 EST


On Wed, 15 Jan 2014 10:45:25 +0900
Namhyung Kim <namhyung@xxxxxxxxxx> wrote:

> If realloc() fails, it'll leak the buffer. Also increate buffer size
> only if the allocation succeeded.
>
> Signed-off-by: Namhyung Kim <namhyung@xxxxxxxxxx>
> ---

Acked-by: Steven Rostedt <rostedt@xxxxxxxxxxx>

-- Steve
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/