From 0809e336594bcb8632472bf509417e75637f18eb Mon Sep 17 00:00:00 2001 From: Andrzej Zaborowski Date: Thu, 30 Jul 2009 10:05:32 +0200 Subject: 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). --- src/sim.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src') diff --git a/src/sim.c b/src/sim.c index 18ff5bed..6e144f42 100644 --- a/src/sim.c +++ b/src/sim.c @@ -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; } -- cgit v1.2.3