From 9b88715dd40d15d47c0ea70286a2ae18e9812651 Mon Sep 17 00:00:00 2001 From: "wootak.jung" Date: Thu, 25 Jul 2013 15:48:44 +0900 Subject: [PATCH] Fix the issue that response data(e.g., +CCWA:0,1) was not freed. --- packaging/tel-plugin-atmodem.spec | 2 +- src/s_ss.c | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/packaging/tel-plugin-atmodem.spec b/packaging/tel-plugin-atmodem.spec index 44f7e16..4219cb0 100644 --- a/packaging/tel-plugin-atmodem.spec +++ b/packaging/tel-plugin-atmodem.spec @@ -1,7 +1,7 @@ #sbs-git:slp/pkgs/t/tel-plugin-atmodem Name: tel-plugin-atmodem Summary: Telephony AT Modem library -Version: 0.1.38 +Version: 0.1.39 Release: 1 Group: System/Libraries License: Apache diff --git a/src/s_ss.c b/src/s_ss.c index bbb8464..2fbf764 100644 --- a/src/s_ss.c +++ b/src/s_ss.c @@ -1057,6 +1057,7 @@ static void on_response_ss_waiting_get( TcorePending *p, int data_len, const voi struct ss_confirm_info* info = 0; struct tresp_ss_waiting resp; int countRecords=0, countValidRecords =0; + char *line; o = tcore_pending_ref_core_object(p); ur = tcore_pending_ref_user_request(p); @@ -1086,13 +1087,14 @@ static void on_response_ss_waiting_get( TcorePending *p, int data_len, const voi ; p_cur != NULL ; p_cur = p_cur->p_next) { - err = at_tok_start(&(p_cur->line)); + line = p_cur->line; + err = at_tok_start(&line); if (err < 0){ dbg("start line error. skip this line"); goto error; } - err = at_tok_nextint(&(p_cur->line), &status);// status + err = at_tok_nextint(&line, &status);// status if (err < 0) { dbg("status error. skip this line"); goto error; @@ -1105,7 +1107,7 @@ static void on_response_ss_waiting_get( TcorePending *p, int data_len, const voi resp.record[countValidRecords].status = SS_STATUS_DEACTIVATE; } - err = at_tok_nextint(&(p_cur->line), &classx); //class + err = at_tok_nextint(&line, &classx); //class if (err < 0) { dbg("class error. skip this line"); goto error; -- 2.7.4