[PATCH 3/4] Fix possible memory leak on SIM reading error.

Andrzej Zaborowski andrew.zaborowski at intel.com
Sat Aug 1 15:46:36 PDT 2009


Hi,

2009/7/31 Denis Kenzior <denkenz at gmail.com>:
> This really shouldn't happen in practice, but if it does, we should also look
> to see if the read callback functions don't cleanup or don't behave properly
> as a result of an error mid-stream.  It looks like at least sim_msisdn_read_cb
> might be affected.  Could you check?

Right, the attached diff adds the needed checks assuming there will be
no more callbacks after an error.

Regards
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Make-sure-SIM-read-callbacks-die-cleanly.patch
Type: text/x-patch
Size: 2362 bytes
Desc: not available
URL: <http://lists.ofono.org/pipermail/ofono/attachments/20090802/7e6eb434/attachment.bin>


More information about the ofono mailing list