diff options
author | s414kim <s414.kim@samsung.com> | 2017-07-04 10:51:02 +0900 |
---|---|---|
committer | s414kim <s414.kim@samsung.com> | 2017-07-04 10:51:02 +0900 |
commit | 684c188048de5552b5a12231f26409c7a620a61e (patch) | |
tree | c3230b6bec8e2e866c01fe88f74360f18c47b845 | |
parent | 3df5d63f92769b0c8004b02f569cbb0ea54e250c (diff) | |
download | libkrate-tizen_4.0_tv.tar.gz libkrate-tizen_4.0_tv.tar.bz2 libkrate-tizen_4.0_tv.zip |
Fix memory leak of setup-wizardtizen_4.0.m2_releasetizen_4.0.IoT.p2_releasetizen_4.0.IoT.p1_releasesubmit/tizen_4.0_unified/20170814.115522submit/tizen_4.0/20170828.110004submit/tizen_4.0/20170828.100004submit/tizen_4.0/20170814.115522submit/tizen_4.0/20170811.094300submit/tizen/20170705.042425submit/tizen/20170704.023852accepted/tizen/unified/20170705.163034accepted/tizen/4.0/unified/20170829.020228accepted/tizen/4.0/unified/20170816.014916accepted/tizen/4.0/unified/20170816.011749tizen_4.0_tv
Change-Id: I0d32bf2435ddf380485a4555061346b1d5b803cb
Signed-off-by: s414kim <s414.kim@samsung.com>
-rw-r--r-- | tools/apps/setup-wizard/src/util.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/apps/setup-wizard/src/util.c b/tools/apps/setup-wizard/src/util.c index 4813f33..52485de 100644 --- a/tools/apps/setup-wizard/src/util.c +++ b/tools/apps/setup-wizard/src/util.c @@ -133,6 +133,7 @@ static int __set_notification(notification_h noti_handle, app_control_h app_cont text = noti_text[0]; else text = noti_text[1]; + free(mode); ret = notification_set_text(noti_handle, NOTIFICATION_TEXT_TYPE_TITLE, __(text[0]), NULL, NOTIFICATION_VARIABLE_TYPE_NONE); if (ret != NOTIFICATION_ERROR_NONE) @@ -143,6 +144,7 @@ static int __set_notification(notification_h noti_handle, app_control_h app_cont return -1; snprintf(noti_content_text, PATH_MAX, __(text[1]), krate_name); + free(krate_name); ret = notification_set_text(noti_handle, NOTIFICATION_TEXT_TYPE_CONTENT, noti_content_text, NULL, NOTIFICATION_VARIABLE_TYPE_NONE); if (ret != NOTIFICATION_ERROR_NONE) |