diff options
author | Andrzej Zaborowski <andrew.zaborowski@intel.com> | 2009-07-30 10:05:32 +0200 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2009-07-31 09:56:44 -0500 |
commit | 0809e336594bcb8632472bf509417e75637f18eb (patch) | |
tree | 8fd12aab49d8dde20457260e52d2826f77e1084b /src/sim.c | |
parent | cfce4413c6a17e5094ae6c991255c8e93a4487cf (diff) | |
download | ofono-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.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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; } |