fixed coverity issues 83/244183/1 accepted/tizen/unified/20200916.121654 submit/tizen/20200915.152824
authorAman Jeph <aman.jeph@samsung.com>
Tue, 15 Sep 2020 14:19:42 +0000 (19:49 +0530)
committeraman.jeph <aman.jeph@samsung.com>
Tue, 15 Sep 2020 14:28:18 +0000 (19:58 +0530)
Change-Id: I5afd66ad1364c5eff633144124bc3c6accec3208
:q!q!Signed-off-by: aman.jeph <aman.jeph@samsung.com>

src/attach-panel-voicerecorder.c [changed mode: 0644->0755]
src/view/audio-recorder-view.c [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index c124aa2..be7e9ff
@@ -158,7 +158,10 @@ static void *__attachPanelVoiceRecorder_on_create(ui_gadget_h ug, enum ug_mode m
        } else {
                ugd->is_caller_attach_panel = FALSE;
        }
-
+       if(contact_id) {
+               free(contact_id);
+               contact_id = NULL;
+       }
 
 
        ugd->base = __attachPanelVoiceRecorder_create_fullview(parent, ugd);
@@ -236,6 +239,8 @@ static void __attachPanelVoiceRecorder_on_message(ui_gadget_h ug, app_control_h
                        } else {
                                LOGD("invalid mode: %s", display_mode);
                        }
+                       free(display_mode);
+                       display_mode = NULL;
                }
        }
 }
old mode 100644 (file)
new mode 100755 (executable)
index 3a78d77..545e809
@@ -395,7 +395,11 @@ void _main_layout_add(Evas_Object *layout, ui_gadget_h ug_handle, app_control_h
        } else {
                view->limitsize = atoi(size_limit);
        }
-
+       if(size_limit)
+       {
+               free(size_limit);
+               size_limit = NULL;
+       }
        LOGD("Size limit = %llu", view->limitsize);
 
        _recorder_create(view);