Fix memory leakage 64/141964/2 accepted/tizen/4.0/unified/20170816.010435 accepted/tizen/4.0/unified/20170816.014208 accepted/tizen/4.0/unified/20170829.015915 accepted/tizen/unified/20170803.010535 submit/tizen/20170802.083804 submit/tizen_4.0/20170811.094300 submit/tizen_4.0/20170814.115522 submit/tizen_4.0/20170828.100004 submit/tizen_4.0_unified/20170814.115522
authorsinikang <sinikang@samsung.com>
Wed, 2 Aug 2017 06:22:44 +0000 (15:22 +0900)
committersinikang <sinikang@samsung.com>
Wed, 2 Aug 2017 06:30:19 +0000 (15:30 +0900)
Change-Id: Ifa0cbe98607f5c5d87547c32fd90004971011a4b

packaging/tel-plugin-dbus_tapi.spec
src/dtapi_sat.c

index d7baf4a24ee0b0a3bdebe8992f200ace08977724..55dc67b45d8a2663a9f0511c99607c7281bd1aca 100644 (file)
@@ -1,6 +1,6 @@
 %define major 0
 %define minor 3
-%define patchlevel 84
+%define patchlevel 85
 
 Name:           tel-plugin-dbus_tapi
 Version:        %{major}.%{minor}.%{patchlevel}
index b25bf99a03676699683a8ebd99feb2d6d865e2d7..699542f76e26f7ae6f98c6cafea750736b88117b 100644 (file)
@@ -396,7 +396,7 @@ gboolean dbus_plugin_sat_response(struct custom_data *ctx,
                        (envelop_rsp->sub_cmd == ENVELOP_RAW_DATA ? "RAW DATA" :
                        "UNKNOWN"))),
                        (envelop_rsp->envelop_resp == ENVELOPE_SUCCESS ? "Success" :
-                       (envelop_rsp->envelop_resp == ENVELOPE_SIM_BUSY? "SIM Busy" :
+                       (envelop_rsp->envelop_resp == ENVELOPE_SIM_BUSY ? "SIM Busy" :
                        "Fail")));
 
                if (envelop_rsp->sub_cmd == ENVELOP_MENU_SELECTION)
@@ -1174,7 +1174,7 @@ gboolean dbus_plugin_sat_notification(struct custom_data *ctx,
                case SAT_PROATV_CMD_SETUP_CALL: {
                        GVariant *setup_call = NULL;
                        gint command_id, call_type, confirmed_text_len, text_len, duration;
-                       gchar *confirmed_text, *text = NULL, *call_number = NULL;
+                       gchar *confirmed_text = NULL, *text = NULL, *call_number = NULL;
 #if defined(TIZEN_SUPPORT_SAT_ICON)
                        GVariant *icon_id;
 #endif
@@ -1233,14 +1233,15 @@ gboolean dbus_plugin_sat_notification(struct custom_data *ctx,
                                                dbg("Failed to de-queue data\n");
                                }
 
+                               g_free(confirmed_text);
                                g_free(text);
                                g_free(call_number);
 
                                return TRUE;
                        }
                        /* In case of No user confirm phase AlphaID in SETUP CALL noti.
-                         * Ref.) ETSI TS 102 223 : Section 6.4.13 and 6.6.12
-                         */
+                       * Ref.) ETSI TS 102 223 : Section 6.4.13 and 6.6.12
+                       */
 #if defined(TIZEN_SUPPORT_SAT_ICON)
                        telephony_sat_emit_setup_call(sat,
                                command_id, confirmed_text, confirmed_text_len,
@@ -1250,6 +1251,8 @@ gboolean dbus_plugin_sat_notification(struct custom_data *ctx,
                                command_id, confirmed_text, confirmed_text_len,
                                text, text_len, call_type, call_number, duration);
 #endif
+
+                       g_free(confirmed_text);
                        g_free(text);
                        g_free(call_number);
                }
@@ -1385,7 +1388,7 @@ gboolean dbus_plugin_sat_notification(struct custom_data *ctx,
                                gboolean user_confirm = TRUE;
                                int ret;
 
-                               dbg("Text should be displayed by UI- Open Channel text is displayed!!!");
+                               dbg("Text should be displayed by UI- Open Channel text is displayed!!!");
 
 #if defined(TIZEN_SUPPORT_SAT_ICON)
                                ui_info = g_variant_new("(isibv)", command_id,
@@ -1659,7 +1662,7 @@ gboolean dbus_plugin_sat_notification(struct custom_data *ctx,
                case SAT_PROATV_CMD_REFRESH: {
                        GVariant *refresh = NULL;
                        gint command_id = 0;
-                       gint refresh_type =0, text_len = 0;
+                       gint refresh_type = 0, text_len = 0;
                        GVariant *file_list = NULL;
                        gchar *text = NULL;
                        int ret;