From: sinikang Date: Wed, 12 Feb 2020 04:50:16 +0000 (+0900) Subject: Fix coverity issue (Incorrect deallocator used) X-Git-Tag: submit/tizen/20200213.050319^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c25798ba6da5f6cd76a3b31b19d7cda7d1a6d97d;p=platform%2Fcore%2Ftelephony%2Ftel-plugin-dbus_tapi.git Fix coverity issue (Incorrect deallocator used) Change-Id: I18e756bee7b59fb4fdcf4b7de10072f8f3fb64ef Signed-off-by: sinikang --- diff --git a/packaging/tel-plugin-dbus_tapi.spec b/packaging/tel-plugin-dbus_tapi.spec index 8c33ea5..40a3396 100644 --- a/packaging/tel-plugin-dbus_tapi.spec +++ b/packaging/tel-plugin-dbus_tapi.spec @@ -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} diff --git a/src/dtapi_sim.c b/src/dtapi_sim.c index 6ef8194..b2d1c96 100644 --- a/src/dtapi_sim.c +++ b/src/dtapi_sim.c @@ -84,11 +84,11 @@ 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;