[PATCH] agent: fix a double free in agent message handling

2014-05-14 Thread Hannu Mallat
It could happen that cleaning up the pending message in agent_receive_message() would as a side effect clear the last reference to the service via driver context unref function pointer. Service cleanup would then call connman_agent_cancel(), which would try to clean up the pending message for the

Re: [PATCH] agent: fix a double free in agent message handling

2014-05-14 Thread Patrik Flykt
On Wed, 2014-05-14 at 09:12 +0300, Hannu Mallat wrote: It could happen that cleaning up the pending message in agent_receive_message() would as a side effect clear the last reference to the service via driver context unref function pointer. Service cleanup would then call