linux-dmabuf: Fix crash with no valid modifiers
We shouldn't free &modifier_invalid because it wasn't allocated with malloc() Signed-off-by: Derek Foreman <derekf@osg.samsung.com> Reviewed-by: Daniel Stone <daniels@collabora.com>
This commit is contained in:
parent
12968e3756
commit
cd052a6214
@ -509,7 +509,8 @@ bind_linux_dmabuf(struct wl_client *client,
|
||||
modifier_hi,
|
||||
modifier_lo);
|
||||
}
|
||||
free(modifiers);
|
||||
if (modifiers != &modifier_invalid)
|
||||
free(modifiers);
|
||||
}
|
||||
free(formats);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user