wispr: Free wispr portal context in the relevant place
authorTomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
Tue, 23 Oct 2012 07:26:44 +0000 (10:26 +0300)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Tue, 23 Oct 2012 07:42:57 +0000 (10:42 +0300)
commitde9e458c766c0393610db244eda509dc70a35bf4
tree5fe76f2c5a53a98860738ab440f6c5f3b54999d5
parent082a40ecad183cb25aefa25fa2e5aa709531b482
wispr: Free wispr portal context in the relevant place

This fixes 2 issues:
- calling __connman_service_ipconfig_indicate_state() might lead to
  restart wispr_portal check, so context should not be freed afterward
  but beforehand.
- freeing the context in wispr_manage_message() should not happen since
  wispr_manage_message() will return back to wispr_portal_web_result()
  where we can still use the context.

Thanks to Julien Massot <jmassot@aldebaran-robotics.com> who reported
the issue and provided logs.
src/wispr.c