projects
/
platform
/
core
/
uifw
/
pepper.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bfcc906
)
wayland-shm-buffer: fixed dereference of freed buffer.
55/82755/1
author
Gwanglim Lee
<gl77.lee@samsung.com>
Fri, 5 Aug 2016 12:41:22 +0000
(21:41 +0900)
committer
Gwanglim Lee
<gl77.lee@samsung.com>
Fri, 5 Aug 2016 12:41:22 +0000
(21:41 +0900)
Change-Id: I355285aa9a6ee5e73e35dc44ec3cdf557a9d3fbf
src/lib/wayland/wayland-shm-buffer.c
patch
|
blob
|
history
diff --git
a/src/lib/wayland/wayland-shm-buffer.c
b/src/lib/wayland/wayland-shm-buffer.c
index dfbfd48779ec9479eb1784691072a72fcd2ff893..b43584ef1aecd041f9200ab8c905ff40a67b2ea6 100644
(file)
--- a/
src/lib/wayland/wayland-shm-buffer.c
+++ b/
src/lib/wayland/wayland-shm-buffer.c
@@
-108,12
+108,12
@@
error:
if (fd >= 0)
close(fd);
- if (buffer)
- free(buffer);
-
if (buffer->target)
pepper_render_target_destroy(buffer->target);
+ if (buffer)
+ free(buffer);
+
return NULL;
}