From: wootak.jung Date: Thu, 25 Jul 2013 06:48:44 +0000 (+0900) Subject: Fix the issue that response data(e.g., +CCWA:0,1) was not freed. X-Git-Tag: accepted/tizen/ivi/genivi/20140131.061229~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F68%2F8468%2F1;p=platform%2Fcore%2Ftelephony%2Ftel-plugin-atmodem.git Fix the issue that response data(e.g., +CCWA:0,1) was not freed. --- 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;