From 7b6b5f51028c72e8a868e87cad41892977552218 Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Tue, 6 Dec 2011 00:15:28 -0800 Subject: [PATCH] st/mesa: Fix memory leak in out-of-memory path. Fixes Coverity resource leak defect. Signed-off-by: Vinson Lee Reviewed-by: Brian Paul --- src/mesa/state_tracker/st_atom_pixeltransfer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mesa/state_tracker/st_atom_pixeltransfer.c b/src/mesa/state_tracker/st_atom_pixeltransfer.c index afca609769f..fb1e4092ccb 100644 --- a/src/mesa/state_tracker/st_atom_pixeltransfer.c +++ b/src/mesa/state_tracker/st_atom_pixeltransfer.c @@ -266,6 +266,7 @@ get_pixel_transfer_program(struct gl_context *ctx, const struct state_key *key) if (!fp->Base.Instructions) { _mesa_error(ctx, GL_OUT_OF_MEMORY, "generating pixel transfer program"); + _mesa_free_parameter_list(params); return NULL; } -- 2.30.2