return NULL;
}
+ /*Move from 1688 lines to here, Previously, In case of failing memory allocation of tr, event_list was not freed.*/
+ /* send TR - does not need from application's response */
+ tr = (struct treq_sat_terminal_rsp_data *)calloc(1, sizeof(struct treq_sat_terminal_rsp_data));
+ if (!tr)
+ return NULL;
+
/* event cnt */
event_cnt = event_list_tlv->event_list.event_list_cnt;
dbg("event cnt(%d)", event_cnt);
event_list = g_variant_new("(yv)", event_cnt, evt_list);
}
- /* send TR - does not need from application's response */
- tr = (struct treq_sat_terminal_rsp_data *)calloc(1, sizeof(struct treq_sat_terminal_rsp_data));
- if (!tr)
- return NULL;
tr->cmd_number = event_list_tlv->command_detail.cmd_num;
tr->cmd_type = event_list_tlv->command_detail.cmd_type;
return NULL;
}
- provide_info = g_variant_new("(i)", info_type);
-
/* send TR - does not need from application's response */
tr = (struct treq_sat_terminal_rsp_data *)calloc(1, sizeof(struct treq_sat_terminal_rsp_data));
if (!tr)
info_type = provide_local_info_tlv->command_detail.cmd_qualifier.provide_local_info.provide_local_info;
+ /*Move from 2664 line to here. Previously, In case of failing memory allocation of tr, provide_info was not freed.*/
+ provide_info = g_variant_new("(i)", info_type);
+
switch (info_type) {
case LOCAL_INFO_DATE_TIME_AND_TIMEZONE:{
int err = 0; int gmt = 0, n_flg = 0;