mirror of git://git.sysmocom.de/ofono
Fix possible memory leak on SIM reading error.
This would also stall the SIM op queue if there's a read error for a record other than the first. The other solution would be "goto next;" (keep reading further records).
This commit is contained in:
parent
cfce4413c6
commit
0809e33659
|
@ -314,9 +314,7 @@ static void sim_op_retrieve_cb(const struct ofono_error *error,
|
||||||
int fd;
|
int fd;
|
||||||
|
|
||||||
if (error->type != OFONO_ERROR_TYPE_NO_ERROR) {
|
if (error->type != OFONO_ERROR_TYPE_NO_ERROR) {
|
||||||
if (op->current == 1)
|
sim_op_error(modem);
|
||||||
sim_op_error(modem);
|
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue