summaryrefslogtreecommitdiffstats
path: root/src/sim.c
diff options
context:
space:
mode:
authorAndrzej Zaborowski <andrew.zaborowski@intel.com>2009-07-30 10:05:32 +0200
committerDenis Kenzior <denkenz@gmail.com>2009-07-31 09:56:44 -0500
commit0809e336594bcb8632472bf509417e75637f18eb (patch)
tree8fd12aab49d8dde20457260e52d2826f77e1084b /src/sim.c
parentcfce4413c6a17e5094ae6c991255c8e93a4487cf (diff)
downloadofono-0809e336594bcb8632472bf509417e75637f18eb.tar.bz2
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).
Diffstat (limited to 'src/sim.c')
-rw-r--r--src/sim.c4
1 files changed, 1 insertions, 3 deletions
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;
}