diff options
author | Vinson Lee <[email protected]> | 2011-12-06 00:15:28 -0800 |
---|---|---|
committer | Vinson Lee <[email protected]> | 2011-12-16 17:51:41 -0800 |
commit | 7b6b5f51028c72e8a868e87cad41892977552218 (patch) | |
tree | eaf6d17e7bc020b078b276a35eb8a67670e44b76 /src/mesa | |
parent | cf79e2250927eb82559079a4a5d2bb7eab0fa5c5 (diff) |
st/mesa: Fix memory leak in out-of-memory path.
Fixes Coverity resource leak defect.
Signed-off-by: Vinson Lee <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/state_tracker/st_atom_pixeltransfer.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |