Skip to content
Snippets Groups Projects
Commit cd052a62 authored by Derek Foreman's avatar Derek Foreman Committed by Daniel Stone
Browse files

linux-dmabuf: Fix crash with no valid modifiers


We shouldn't free &modifier_invalid because it wasn't allocated
with malloc()

Signed-off-by: default avatarDerek Foreman <derekf@osg.samsung.com>
Reviewed-by: Daniel Stone's avatarDaniel Stone <daniels@collabora.com>
parent 12968e37
No related branches found
No related tags found
No related merge requests found
...@@ -509,7 +509,8 @@ bind_linux_dmabuf(struct wl_client *client, ...@@ -509,7 +509,8 @@ bind_linux_dmabuf(struct wl_client *client,
modifier_hi, modifier_hi,
modifier_lo); modifier_lo);
} }
free(modifiers); if (modifiers != &modifier_invalid)
free(modifiers);
} }
free(formats); free(formats);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment