projects
/
platform
/
core
/
appfw
/
widget-service.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a326fb3
)
Fix resource leak
16/184116/2
author
Semun Lee
<semun.lee@samsung.com>
Mon, 16 Jul 2018 00:32:21 +0000
(09:32 +0900)
committer
Semun Lee
<semun.lee@samsung.com>
Mon, 16 Jul 2018 01:09:07 +0000
(10:09 +0900)
Change-Id: I89eb122135b2ed91b6992a9f38b3337ffedb9e23
Signed-off-by: Semun Lee <semun.lee@samsung.com>
tool/widget_test.c
patch
|
blob
|
history
diff --git
a/tool/widget_test.c
b/tool/widget_test.c
index
6cf1e50
..
5930e38
100644
(file)
--- a/
tool/widget_test.c
+++ b/
tool/widget_test.c
@@
-20,7
+20,12
@@
int get_pkg_id(int argc, char **argv)
return -1;
pkg_id = widget_service_get_package_id(argv[2]);
- printf("pkg id: %s", pkg_id);
+ if (pkg_id) {
+ printf("pkg id: %s\n", pkg_id);
+ free(pkg_id);
+ } else {
+ printf("failed to get pkg id\n");
+ }
return 0;
}