X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fs_ps.c;h=5e7c6a814c45314881838e479490a9890f0e62bb;hb=62efc6f5eb43ed70c94d4baf8221a1fee89b81e0;hp=20b92e35040327ab9d3697434ea3fa33e1a18849;hpb=00bf6271650ad82e907f209f371289f5461ce32a;p=platform%2Fcore%2Ftelephony%2Ftel-plugin-imc.git diff --git a/src/s_ps.c b/src/s_ps.c old mode 100644 new mode 100755 index 20b92e3..5e7c6a8 --- a/src/s_ps.c +++ b/src/s_ps.c @@ -57,16 +57,6 @@ #define AT_XDNS_DISABLE 0 #define AT_SESSION_DOWN 0 -static void _ps_free(void *ptr) -{ - dbg("Entry"); - if (ptr) { - (void) free(ptr); - ptr = NULL; - } - dbg("Exit"); - return; -} static void _unable_to_get_pending(CoreObject *co_ps, CoreObject *ps_context) { struct tnoti_ps_call_status data_resp = {0}; @@ -300,8 +290,8 @@ static void on_response_get_dns_cmnd(TcorePending *p, int data_len, const void * && (g_strcmp0("0.0.0.0", dns_sec) == 0)) { dbg("Invalid DNS"); - _ps_free(dns_prim); - _ps_free(dns_sec); + g_free(dns_prim); + g_free(dns_sec); tcore_at_tok_free(tokens); tokens = NULL; @@ -311,8 +301,8 @@ static void on_response_get_dns_cmnd(TcorePending *p, int data_len, const void * /* Set DNS Address */ tcore_context_set_ipv4_dns(ps_context, dns_prim, dns_sec); - _ps_free(dns_prim); - _ps_free(dns_sec); + g_free(dns_prim); + g_free(dns_sec); tcore_at_tok_free(tokens); tokens = NULL; @@ -389,6 +379,8 @@ static void on_response_get_pdp_address(TcorePending *p, int data_len, const voi /* Strip off starting " and ending " from this token to read actual PDP address */ /* Set IP Address */ (void)tcore_context_set_ipv4_addr(ps_context, (const char *)token_pdp_address); + + g_free(token_pdp_address); } /* Get DNS Address */