broadband-modem: fix leaked 'QcdmResult'

This commit is contained in:
Aleksander Morgado
2014-01-25 19:34:57 +01:00
parent 561c8b715e
commit 529e94b039

View File

@@ -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.
*/