projects
/
platform
/
core
/
base
/
syspopup.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a07a111
)
Fix memory leak
70/110770/2
author
Hwankyu Jhun
<h.jhun@samsung.com>
Wed, 18 Jan 2017 03:49:53 +0000
(12:49 +0900)
committer
Hwankyu Jhun
<h.jhun@samsung.com>
Wed, 18 Jan 2017 05:48:12 +0000
(14:48 +0900)
Change-Id: If7e1a5a9b30f376911eb3649b0c7580fa474cfcb
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
tool/sp_initdb.c
patch
|
blob
|
history
diff --git
a/tool/sp_initdb.c
b/tool/sp_initdb.c
index 216f3261c18ba30112f35944ead2a43661182831..4d4e72744290bdcb601dc607bb721292422299bd 100755
(executable)
--- a/
tool/sp_initdb.c
+++ b/
tool/sp_initdb.c
@@
-249,11
+249,16
@@
static int __init_db(void)
info_size = ARRAY_SIZE(wearable_info);
break;
default:
-
printf("syspopup info doesn't exists\n")
;
-
return -1
;
+
info = NULL
;
+
break
;
}
free(profile);
+ if (info == NULL) {
+ printf("Syspopup info doesn't exist\n");
+ return -1;
+ }
+
ret = __open_db();
if (ret < 0)
return -1;