mirror of git://git.sysmocom.de/ofono
rilmodem: use g_new0 instead of g_try_new0
This commit is contained in:
parent
75d7ea8b7f
commit
69f6a77d78
|
@ -236,15 +236,13 @@ no_calls:
|
||||||
} else {
|
} else {
|
||||||
/* Get disconnect cause before calling core */
|
/* Get disconnect cause before calling core */
|
||||||
struct lastcause_req *reqdata =
|
struct lastcause_req *reqdata =
|
||||||
g_try_new0(struct lastcause_req, 1);
|
g_new0(struct lastcause_req, 1);
|
||||||
if (reqdata != NULL) {
|
|
||||||
reqdata->vc = user_data;
|
|
||||||
reqdata->id = oc->id;
|
|
||||||
|
|
||||||
g_ril_send(vd->ril, reqid, NULL,
|
reqdata->vc = user_data;
|
||||||
lastcause_cb, reqdata,
|
reqdata->id = oc->id;
|
||||||
g_free);
|
|
||||||
}
|
g_ril_send(vd->ril, reqid, NULL,
|
||||||
|
lastcause_cb, reqdata, g_free);
|
||||||
}
|
}
|
||||||
|
|
||||||
clear_dtmf_queue(vd);
|
clear_dtmf_queue(vd);
|
||||||
|
|
Loading…
Reference in New Issue