Fix coverity issue (Incorrect deallocator used) 24/224624/1 accepted/tizen/unified/20200214.050311 submit/tizen/20200213.050319
authorsinikang <sinikang@samsung.com>
Wed, 12 Feb 2020 04:50:16 +0000 (13:50 +0900)
committersinikang <sinikang@samsung.com>
Wed, 12 Feb 2020 04:50:16 +0000 (13:50 +0900)
Change-Id: I18e756bee7b59fb4fdcf4b7de10072f8f3fb64ef
Signed-off-by: sinikang <sinikang@samsung.com>
packaging/tel-plugin-dbus_tapi.spec
src/dtapi_sim.c

index 8c33ea5..40a3396 100644 (file)
@@ -1,6 +1,6 @@
 %define major 0
 %define minor 4
-%define patchlevel 04
+%define patchlevel 05
 
 Name:           tel-plugin-dbus_tapi
 Version:        %{major}.%{minor}.%{patchlevel}
index 6ef8194..b2d1c96 100644 (file)
                        if (__check_sim_service_table(op_type, svct) == FALSE) { \
                                err("[%s] 'Service' is disabled in SST", GET_CP_NAME(invocation)); \
                                FAIL_RESPONSE(invocation, DBUS_SIM_SERVICE_IS_DISABLED); \
-                               free(svct); \
+                               g_free(svct); \
                                return TRUE; \
                        } else { \
                                dbg("[%s] Request to modem", GET_CP_NAME(invocation)); \
-                               free(svct); \
+                               g_free(svct); \
                        } \
                } \
        } \
@@ -959,7 +959,7 @@ static gboolean on_sim_get_service_table(TelephonySim *sim,
                telephony_sim_complete_get_service_table(sim,
                        invocation, SIM_ACCESS_SUCCESS, svct->sim_type, svct_gv);
 
-               free(svct);
+               g_free(svct);
        }
 
        return TRUE;