projects
/
platform
/
core
/
uifw
/
libds-tizen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e19420
)
tinyds-tdm: free() an allocated object to prevent a memory leak
12/279812/1
author
duna.oh
<duna.oh@samsung.com>
Fri, 12 Aug 2022 05:41:38 +0000
(14:41 +0900)
committer
Tizen Window System
<tizen.windowsystem@gmail.com>
Thu, 18 Aug 2022 06:12:45 +0000
(15:12 +0900)
Change-Id: I8b3a6f9ebe22d50a5489a8a28757a5e7df395cb2
examples/tinyds-tdm.c
patch
|
blob
|
history
diff --git
a/examples/tinyds-tdm.c
b/examples/tinyds-tdm.c
index e8416ab1c7d9ab0f055a7c8c35ccc282c9b3e298..eb542d0290e53e2027ae2f6c32cc1e8969e7fc5c 100644
(file)
--- a/
examples/tinyds-tdm.c
+++ b/
examples/tinyds-tdm.c
@@
-464,8
+464,11
@@
add_new_dpms(struct tinyds_server *server)
return false;
dpms->ds_dpms = ds_tizen_dpms_create(server->display);
- if (!dpms->ds_dpms)
+ if (!dpms->ds_dpms) {
+ free(dpms);
+ ds_err("Could not create ds_tizen_dpms");
return false;
+ }
dpms->destroy.notify = dpms_handle_destroy;
ds_tizen_dpms_add_destroy_listener(dpms->ds_dpms, &dpms->destroy);