mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 00:10:10 +01:00
mesa: remove null check before free
Reviewed-by: Eduardo Lima Mitev <elima@igalia.com>
This commit is contained in:
parent
3a6763f0a0
commit
76a423efe0
2 changed files with 2 additions and 4 deletions
|
|
@ -608,8 +608,7 @@ read_rgba_pixels( struct gl_context *ctx,
|
|||
dst, format, type);
|
||||
}
|
||||
|
||||
if (rgba)
|
||||
free(rgba);
|
||||
free(rgba);
|
||||
|
||||
done_swap:
|
||||
/* Handle byte swapping if required */
|
||||
|
|
|
|||
|
|
@ -557,8 +557,7 @@ get_tex_rgba_uncompressed(struct gl_context *ctx, GLuint dimensions,
|
|||
}
|
||||
|
||||
done:
|
||||
if (rgba)
|
||||
free(rgba);
|
||||
free(rgba);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue