broadband-modem: fix leaked 'QcdmResult'
This commit is contained in:
@@ -607,9 +607,12 @@ mode_pref_qcdm_ready (MMQcdmSerialPort *port,
|
||||
err = qcdm_result_get_u8 (result, QCDM_CMD_NV_GET_MODE_PREF_ITEM_MODE_PREF, &pref);
|
||||
if (err) {
|
||||
mm_dbg ("Failed to read NV ModePref: %d", err);
|
||||
qcdm_result_unref (result);
|
||||
goto at_caps;
|
||||
}
|
||||
|
||||
qcdm_result_unref (result);
|
||||
|
||||
/* Only parse explicit modes; for 'auto' just fall back to whatever
|
||||
* the AT current capabilities probing figures out.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user