Re: [Piglit] [PATCH piglit] util: avoid leaking memory when caller doesn't ask for it

2018-08-23 Thread Caio Marcelo de Oliveira Filho
Thanks, Eric. This patch is Reviewed-by: Caio Marcelo de Oliveira Filho On Thu, Aug 23, 2018 at 03:23:55PM +0100, Eric Engestrom wrote: > It doesn't happen anywhere right now, but a caller could say it doesn't > want the source, only its size, and in that case we would just leak that > memory.

[Piglit] [PATCH piglit] util: avoid leaking memory when caller doesn't ask for it

2018-08-23 Thread Eric Engestrom
It doesn't happen anywhere right now, but a caller could say it doesn't want the source, only its size, and in that case we would just leak that memory. Let's only actually allocate it when the caller wants it and will take ownership of that memory. Suggested-by: Caio Marcelo de Oliveira Filho