mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 02:58:05 +02:00
postprocess: Check ppq is null before calling pp_free_bos.
pp_free_bos dereferences ppq without a null check. Fixes "Dereference before null check" defect reported by Coverity. Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
parent
a9cb914f49
commit
8294d969e1
1 changed files with 3 additions and 1 deletions
|
|
@ -169,7 +169,9 @@ pp_free(struct pp_queue_t *ppq)
|
|||
{
|
||||
unsigned int i, j;
|
||||
|
||||
pp_free_fbos(ppq);
|
||||
if (ppq) {
|
||||
pp_free_fbos(ppq);
|
||||
}
|
||||
|
||||
if (ppq && ppq->p) {
|
||||
if (ppq->p->pipe && ppq->filters && ppq->shaders) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue