diff options
author | aman.jeph <aman.jeph@samsung.com> | 2020-09-15 19:41:35 +0530 |
---|---|---|
committer | aman.jeph <aman.jeph@samsung.com> | 2020-09-16 11:13:04 +0530 |
commit | 21f4245188a7dd2e93e616b1e3646999b4d80a2f (patch) | |
tree | 1a8ba559c3e24bc1fcde0f536690744c7da1cd33 | |
parent | 86e9c3f853ba911e98095cdfe24a079c64875b7c (diff) | |
download | attach-panel-document-accepted/tizen_7.0_unified.tar.gz attach-panel-document-accepted/tizen_7.0_unified.tar.bz2 attach-panel-document-accepted/tizen_7.0_unified.zip |
fix coverity issuestizen_7.0_m2_releasetizen_6.5.m2_releasetizen_6.0.m2_releasesubmit/tizen_6.5/20211029.140001submit/tizen_6.5/20211028.164001submit/tizen_6.0_hotfix/20201103.115104submit/tizen_6.0_hotfix/20201102.192904submit/tizen_6.0/20211029.144301submit/tizen_6.0/20201029.205504submit/tizen/20200916.054930accepted/tizen/unified/20200916.121629accepted/tizen/7.0/unified/hotfix/20221116.111756accepted/tizen/7.0/unified/20221110.063220accepted/tizen/6.5/unified/20211029.053700accepted/tizen/6.0/unified/hotfix/20201103.050457accepted/tizen/6.0/unified/20211029.080737accepted/tizen/6.0/unified/20211029.040325accepted/tizen/6.0/unified/20201030.104202tizen_7.0_hotfixtizen_7.0tizen_6.5tizen_6.0_hotfixtizen_6.0accepted/tizen_7.0_unified_hotfixaccepted/tizen_7.0_unifiedaccepted/tizen_6.5_unifiedaccepted/tizen_6.0_unified_hotfixaccepted/tizen_6.0_unified
Change-Id: I64b2a22a7976529749c6332f7afc8fb84c9a4752
Signed-off-by: aman.jeph <aman.jeph@samsung.com>
-rwxr-xr-x[-rw-r--r--] | src/attach-panel-document.c | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/src/attach-panel-document.c b/src/attach-panel-document.c index ca58baf..a11de1f 100644..100755 --- a/src/attach-panel-document.c +++ b/src/attach-panel-document.c @@ -242,7 +242,7 @@ static int _doc_parse_param_file(doc_ugdata * ugd, app_control_h service) ugd->file_type_mode = DOC_FILE_T_VIDEO; else ugd->file_type_mode = DOC_FILE_T_ALL; - + free(mime); return 0; } @@ -263,8 +263,10 @@ static int _doc_parse_param_file(doc_ugdata * ugd, app_control_h service) DOC_FREE(file_type); return 0; } - - + if(file_type) { + free(file_type); + file_type = NULL; + } DOC_DEFAULT_FILE_TYPE: doc_dbg("file type is default, set default type(ALL)."); @@ -297,6 +299,10 @@ static int _doc_parse_param(doc_ugdata * ugd, app_control_h service) } else { ugd->limitsize = -1; } + if(total_size) { + free(total_size); + total_size = NULL; + } #endif app_control_get_extra_data(service, APP_CONTROL_DATA_SELECTION_MODE, @@ -464,7 +470,10 @@ static void *_doc_create(ui_gadget_h ug, enum ug_mode mode, } else if (ugd) { ugd->is_attach_panel = false; } - + if(contact_id) { + free(contact_id); + contact_id = NULL; + } if (ugd->overlap_mode) ugd->b_hide_indicator = true; else if (ugd->b_hide_indicator) @@ -627,6 +636,8 @@ static void _doc_message(ui_gadget_h ug, app_control_h msg, } else { doc_dbg("invalid mode: %s", display_mode); } + free(display_mode); + display_mode = NULL; } } } |