[Mesa-dev] [PATCH] mesa: Fix memory leak in out-of-memory path.
Brian Paul
brianp at vmware.com
Mon Oct 31 07:45:11 PDT 2011
On 10/27/2011 03:53 PM, Vinson Lee wrote:
> Fixes Coverity resource leak defect.
> ---
> src/mesa/main/pack.c | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/src/mesa/main/pack.c b/src/mesa/main/pack.c
> index ecdeaf5..539a06c 100644
> --- a/src/mesa/main/pack.c
> +++ b/src/mesa/main/pack.c
> @@ -1983,6 +1983,7 @@ _mesa_pack_rgba_span_float(struct gl_context *ctx, GLuint n, GLfloat rgba[][4],
> break;
> default:
> _mesa_problem(ctx, "bad type in _mesa_pack_rgba_span_float");
> + free(luminance);
> return;
> }
>
Reviewed-by: Brian Paul <brianp at vmware.com>
More information about the mesa-dev
mailing list