mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-05-05 19:28:03 +02:00
libkms/exynos: fix memory leak in error path
This patch fixes memory leak in error path of exynos_bo_create(). Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
This commit is contained in:
parent
0645648dd0
commit
a07cf7f08d
1 changed files with 2 additions and 1 deletions
|
|
@ -88,7 +88,8 @@ exynos_bo_create(struct kms_driver *kms,
|
|||
pitch = (pitch + 512 - 1) & ~(512 - 1);
|
||||
size = pitch * ((height + 4 - 1) & ~(4 - 1));
|
||||
} else {
|
||||
return -EINVAL;
|
||||
ret = -EINVAL;
|
||||
goto err_free;
|
||||
}
|
||||
|
||||
memset(&arg, 0, sizeof(arg));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue