mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 06:10:13 +01:00
egl/wayland: fix memory leak in error handling case
Reviewed-by: Eric Engestrom <eric@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29990>
This commit is contained in:
parent
137c506a7a
commit
11c27a6237
1 changed files with 1 additions and 0 deletions
|
|
@ -86,6 +86,7 @@ create_buffer(struct wl_client *client, struct wl_resource *resource,
|
|||
if (buffer->driver_buffer == NULL) {
|
||||
wl_resource_post_error(resource, WL_DRM_ERROR_INVALID_NAME,
|
||||
"invalid name");
|
||||
free(buffer);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue