projects
/
platform
/
upstream
/
libdrm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0645648
)
libkms/exynos: fix memory leak in error path
author
Seung-Woo Kim
<sw0312.kim@samsung.com>
Mon, 14 Nov 2016 05:31:34 +0000
(14:31 +0900)
committer
Emil Velikov
<emil.l.velikov@gmail.com>
Wed, 14 Dec 2016 17:10:51 +0000
(17:10 +0000)
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>
libkms/exynos.c
patch
|
blob
|
history
diff --git
a/libkms/exynos.c
b/libkms/exynos.c
index
5de2e5a
..
0e97fb5
100644
(file)
--- a/
libkms/exynos.c
+++ b/
libkms/exynos.c
@@
-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));