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:
Andrzej Zaborowski 2009-07-30 10:05:32 +02:00 committed by Denis Kenzior
parent cfce4413c6
commit 0809e33659
1 changed files with 1 additions and 3 deletions

View File

@ -314,9 +314,7 @@ static void sim_op_retrieve_cb(const struct ofono_error *error,
int fd;
if (error->type != OFONO_ERROR_TYPE_NO_ERROR) {
if (op->current == 1)
sim_op_error(modem);
sim_op_error(modem);
return;
}