Commit cd052a62 authored by Derek Foreman's avatar Derek Foreman Committed by Daniel Stone

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 <>
Reviewed-by: Daniel Stone's avatarDaniel Stone <>
parent 12968e37
...@@ -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(formats); free(formats);
} }
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment